You are not logged in.
Pages: 1
hello all
i want to draw a pixel on window with a rgb color and this is my code :
GdkColor color ;
color.blue = 40 ;
color.red = 100 ;
color.green = 50 ;
gdk_gc_set_rgb_fg_color (widget->style->black_gc, &color);
gdk_draw_point( widget->window , widget->style->black_gc ,10 ,10);
but color of drawing is still black !
what should i do ? thanks ...
Offline
I have no experience with GDK, but from GdkColor's documentation I think you should multiply your blue, red and green values by 256.
Offline
Pages: 1