Re: Color picker idea
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: tlewis mindspring net
- CC: gnome-list gnome org
- Subject: Re: Color picker idea
- Date: Thu, 1 Apr 1999 00:38:51 -0500
> I was thinking about this tonight. I think that a really easy way to
> do this would be to steal code from xmag; instead of grabbing a 100x100
> window, grab a 1x1 window and take the rgb from it. The xmag code and
> a little elbow grease should be all that you need. If I get a chance,
> then I will look into it, but if someone else wants to do this, then I
> (and others, apparently) would be appreciative.
You just need to
1. gdk_image_get()
2. Get the colormap of the window.
3. XQueryColor() on the result of gdk_image_get_pixel().
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]