How to use gdk_draw_rgb_image correctly?



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


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