PROBLEM: bitmap in memory to gtkimage
- From: "Prest Alessandro" <prest fisica uniud it>
- To: gtk-app-devel-list gnome org
- Subject: PROBLEM: bitmap in memory to gtkimage
- Date: Mon, 5 Feb 2007 15:28:54 +0100 (CET)
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);
Where "(gchar*)img_out.data" is pointer to bitmap data.
With this procedure I get: "gdk_pixmap_create_from_data: assertion `data
!= NULL' failed"
Thanks in advance!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]