Re: determine the pixel value
- From: Vlad Harchev <hvv hippo ru>
- To: anil iiit net
- Cc: gtk-list gnome org
- Subject: Re: determine the pixel value
- Date: Wed, 30 Aug 2000 11:38:55 +0500 (SAMST)
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]