RE: [gtkmm] draw images...



I suggest that you:
- ask on the GTK+ list, with a more specific subject, such as "LSB
byte-order RGB immage".
- investigate C++ image conversion APIs. Maybe you can convert the image
with a different library and then use it with gtkmm.

Murray Cumming
www.murrayc.com
murrayc usa net

> -----Original Message-----
> From: gtkmm-list-admin gnome org 
> [mailto:gtkmm-list-admin gnome org] On Behalf Of Éder Augusto 
> Penharbel
> Sent: Dienstag, 20. Januar 2004 18:43
> To: gtkmm-list
> Subject: [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...
> 
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 



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