Re: Getting pixel color in a canvas



On Sat, 24 Feb 2001, Michenaud Laurent wrote:

> Hello,
> 
>       I would like to know how to get the color of a pixel in a
>       canvas.
> 
>       The best for me would be a function which would be like this :
>       GdkColor* = canvas_get_color( canvas, x, y );

There is no back buffer for the canvas - the pixels are generated on the
fly.  So such a function would be quite inefficient.  What is the
application? perhaps there is a better way to do what you want(the only
application I can think of is an eyedropper like in th gimp.).

njh





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