Re: XForms: Display 24 bit images?

Steve Lamont (spl@szechuan.ucsd.edu)
Sat, 23 May 98 10:11:02 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

Re: XForms: Display 24 bit images?
> I am running on an SGI, and my visual is TrueColor(confirmed). However,
> the image returned is 32 bits per pixel, and therefore my image is getting
> compressed to 2/3 its width on the screen. The image itself looks
> greyscale, so only one band seems to be displayed.

Use XPutPixel() to store the data in the image buffer. It will handle
the RGB pixel arrangement correctly.

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