[gtkmm] draw images...



Hello

I need to draw a image from a BGR ( Blue green red ) buffer.

To draw a rgb buffer i can use this:

get_window()->draw_rgb_image( GCTmp, 0, 0, width, height,
	Gdk::RGB_DITHER_NORMAL, imageBuffer, width * 3 );

but how do i do this with the bgr buffer ( rgb in LSBFirst byte order )
without swap the bytes on a loop??? 

Using the Xlib i'd use the XPutImage with a XImage in the LSBFirst
byte_order, but in gtkmm or gtk??? 

can I use the Xlib to draw a image in a Gtk::Window? or are there other
way to do this?


thanks...





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