drawing pictures
- From: Stefan Ottosson <ottosson canit se>
- To: gtk-list redhat com
- Subject: drawing pictures
- Date: Mon, 24 Nov 1997 08:32:21 +0100 (MET)
I want to show a .png image in a window using gdk/gtk.
I have decoded the .png image, and so I have a buffer
containing RGB data.
So what do I do to display it? Would it be enough to
call gdk_pixmap_create_from_data(..) with the data
argument pointing to my RGB buffer, and then drawing
the resulting pixmap in my expose event handler?
Or do I have to mess with colormaps and stuff too?
I have no experience of xlib programming so this isnt
obvious to me..
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]