Re: Color picker idea



>  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]