How to use gdk_draw_rgb_image correctly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

i use function

 gdk_draw_rgb_image(widget->,widget->style->fg_gc[GTK_STATE_NORMAL],
                    0, 0, 100, 100,
                    GDK_RGB_DITHER_MAX, //GDK_RGB_DITHER_NONE,
                    rgb_buf,0);


to draw image, but it only display a 100*100 black image no matter
what contents the rgb_buf is.

i set the background color to (0,0,0)

Please help me

Thanks
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux