Re: PROBLEM: bitmap in memory to gtkimage
- From: Ed Catmur <ed catmur co uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: PROBLEM: bitmap in memory to gtkimage
- Date: Mon, 05 Feb 2007 16:16:02 +0000
On Mon, 2007-02-05 at 15:28 +0100, Prest Alessandro wrote:
Hello,
I have a bitmap image loaded in memory which structure is a standard
bitmap structure (BITMAP Info Header).
I want to display this bitmap in a GDKimage, which routine should I call?
Is this correct:
gdkPix =
gdk_pixmap_create_from_data(NULL,(gchar*)img_out.data,640,480,2,fg,bg);
image = gtk_image_new_from_pixmap(gdkPix,NULL);
No, you want gdk_pixbuf_new_from_data(). See
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-creating.html
Ed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]