Re: how to display a bmp?



On Thu, 24 Jun 2004, F. Kater wrote:
I have to display bitmaps. Since I am quite a newbee and have created
only some windows and buttons with gtk/win32 yet (and the image widget
is not documented in the gtk-2.0 docu) -- where do I start?
Further: Actually I have to display a series of gray bitmaps (from a
firewall camera). Is there another way besides the image widget?

It depends on the source of your bitmaps; if they're coming from .bmp
files, GtkImage is probably the easiest; have a look at gtk_image_new,
gtk_image_new_from_file, and gtk_image_set_from_file.

http://developer.gnome.org/doc/API/2.0/gtk/GtkImage.html

Failing that, you may have to play with the gdk rgb functions.

http://developer.gnome.org/doc/API/2.0/gdk/gdk-GdkRGB.html

HTH
JV



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