[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    Re: determine the pixel value
From:       Vlad Harchev <hvv () hippo ! ru>
Date:       2000-08-30 6:38:55
[Download RAW message or body]

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


_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic