Good morning
I had the same problem many days ago. I hope this will solve your problem.
add(*manage(new Gtk::Image(filename)));
show_all();
bye
Kathrin
Am Dienstag, 13. Dezember 2005 00:06 schrieb Matt Hull:
I am new to gtk and trying to draw a bitmap to the screen. the bitmap is
about 200
Dear Matt,
See gtk_image_set_from_pixbuf() and GdkPixbuf if you want to load the
bitmap from a file.
See gtk_image_set_from_pixmap() and gdk_draw_rgb_image() if you want to
get the image data from some RGB buffer. You also need to create a
pixmap with gdk_pixmap_new(). GdkPixmaps are
I am new to gtk and trying to draw a bitmap to the screen. the bitmap is
about 200 by 300 pixels with 8 bit rgb, total is 24 bits. alpha is
optional at the moment. for now it is 0xff. i have tried many different
examples from the internet but none seem to work. can anyone give me an
example ?