drawing images & byte_order



hello all..

i'm begginer in the gtk programming... i need to draw a image from a
buffer in LSBFirst byte-order, using gdk_draw_rgb_image the colors are
swapped and i mustn't swap the pixels in a loop... 

if i use the Xlib... i can use this:

XImage *image;
im = XCreateImage( ... )
...
im->byte_order = MSBFirst;
XPutImage( ... )
...

and runs fine...

but i have to use the gtk and i don't know how do this, the solution
also can be a mix of gtk and Xlib if possible... 



:-) thanks... 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]