[gtkada] get the color of a specific pixel
yoann toussaint
yoann.toussaint at free.fr
Thu May 16 09:02:49 CEST 2002
hello,
in my paint'like I am implementing a shape fill ('pot de peinture' in
french)
and I would like to get the gdk_color of the pixel at coordinates x,y on
my drawing area.
Is anyone knows how to get that ?
and why there is a field named 'pixel' in gdk_color type :
type Gdk_Color is
record
Pixel : Gulong;
Red : Gushort;
Green : Gushort;
Blue : Gushort;
end record;
thanks,
yoann
More information about the gtkada
mailing list