gdk_draw_image() not working?
- From: Tomasz Sterna <tomek xiaoka com>
- To: gtk-app-devel-list gnome org
- Subject: gdk_draw_image() not working?
- Date: Wed, 09 Jun 2010 00:22:53 +0200
I am using the following code (stripped):
---- 8< ----
drawing = gtk_drawing_area_new ();
gc = gdk_gc_new (drawing->window);
image = gdk_image_new (GDK_IMAGE_FASTEST,
gdk_visual_get_system(), w, h );
paint_image (image->mem); // custom painting function
gdk_draw_image (drawing->window, gc,
image, 0, 0, 0, 0, -1, -1 );
---- 8< ----
and I don't see my image on screen :-(
If I replace GdkImage with GdkPixbuf + gdk_draw_pixbuf() I can see my
picture fine.
I already have 16bpp painted picture, so I don't like GdkPixbuf because
I need to convert 16->24bpp (and then GDK converts back, because my
visual is 16bpp).
Is there something wrong with the way I use GtkImage?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]