Re: determine the pixel value



On Tue, 29 Aug 2000 anil@iiit.net 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.
 I.e. 
	GdkColor color;
	color->red = 23; .../*for all members*/
	if (!gdk_color_alloc(somecolormap,&color)) {
		/*do something since allocation failed*/
	};
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 

 Best regards,
  -Vlad






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