Re: [gtk-list] gdk_image_get_pixel



Oi, Pedro.
You have to use it as follows
        
        color.pixel = gdk_image_get_pixel(image, x, y);
        gdk_color_context_query_color(cc, &color);

This function will give you the rgb fields in color.

you can replace cc by gdk_colormap_get_system(), for example.
Regards,
<ADRIAN>


On Wed, 26 Apr 2000, Pedro Medeiros wrote:

> 
>  How does gdk_image_get_pixel works? It returns a guint32, but
> a GdkColor would be much more useful. How to use this guint32 to
> get the real color?
> 
> --
> Pedro Medeiros.
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 



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