Re: determine the pixel value

On Tue, 29 Aug 2000 wrote:

> 	How to determine the value of the pixel given the RGB values ?

 You have to allocate color with given RGB values and then use 'pixel' member.
	GdkColor color;
	color->red = 23; .../*for all members*/
	if (!gdk_color_alloc(somecolormap,&color)) {
		/*do something since allocation failed*/
> _______________________________________________
> gtk-list mailing list

 Best regards,

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