XForms: Adavanced image display

=?iso-8859-1?Q?Gwena=EBl?= Durand (Gwenael.Durand@lip6.fr)
Sun, 14 Nov 1999 16:11:32 +0100

# To subscribers of the xforms list from =?iso-8859-1?Q?Gwena=EBl?= Durand <Gwenael.Durand@lip6.fr> :

Hi all,

I've been developing an interface for managing image databases for
nearly 2 years now. It's developed with xforms0.88 on Linux, and
contains several windows in which several 8 bits color images computed
or modified on the fly must be displayed and updated. Until now i used
pixmap objects (obj = fl_add_pixmap(...)) to display them, and i
developed my own xpm library for generating the appropriate xpm raw
data. This is an example of what my code looks like:

XPMdata *XPM;
...
delete XPM;
XPM = image1.convertToXPM();
fl_free_pixmap_pixmap(fd_app->app_img1);
fl_set_pixmap_data(fd_app->app_img1, XPM->raw);
delete XPM;
XPM = image2.convertToXPM();
fl_free_pixmap_pixmap(fd_app->app_img2);
fl_set_pixmap_data(fd_app->app_img2, XPM->raw);
...

where fd_app->app_img1, fd_app->app_img2, ... are "FL_PIXMAP" objects.

This is a bit dirty, but i have to say that it works quite well and is
rather fast. In some case several ~300x300 pixel wide images have to be
updated quite often. However, my application is becoming bigger and
bigger, with more and more objects to display simultaneously, and so...
slower and slower!
Now, i saw that the latest release of Xforms now provides support for
image manipulation and display. So, here comes my question:

What is, now, the faster and most efficient way to display images
with Xform0.89?

As an example of application, thing of the xv's "Visual Schnauzer" with
a dozen of 100x100 thumbnails in a window.
By the way, is it reasonable to think making such a window scrollable?

Thanks,
Gwenaël.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/