RE: XForms: Problem displaying images

Michael Glickman (michaelg@linx.com.au)
Wed, 15 Sep 1999 16:25:08 +1000

# To subscribers of the xforms list from Michael Glickman <michaelg@linx.com.au> :

> I also tried the xpm format. On my machine xpm format does not
> work at all at any depth. I get a blank image and error messages like
> .
> .
> In LookupColor [rgb_db.c 210] can't handle color #f8f8fafaffff",
> In LookupColor [rgb_db.c 210] can't handle color #fafaffffffff",
> .
> .
> for many colors. I did use flimage_enable_xpm().
>
> A rather interesting colour values indeed.
> I expected the colour name to be of #RRGGBB format
> (i.e. no more that 6 hex digits after #). Naive human!
>
> I actually use a different technique. I think, what you are
> after is fl_load_pixmap (I will have to check the name).
> This reads the pixmap, creates it in memory and gives
> you the handle. This handle is used in XCopyArea
> for copying the pixmap to the canvas window, as a part
> of canvas event handler.
>
> I will bring the source code and send it to you tomorrow
> morning. So far you have plenty of time for experimenting
>
> Michael
>
>
>
_________________________________________________
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/