Re: continued problem:How to get the color of a pixel(x, y) on the window?



Am Dienstag, den 09.06.2009, 16:02 +0800 schrieb chunlong84:

> cr->set_source_rgb(65535,65535,65535);    //paint the background of the canvas

Cairo uses normalized floating point values for color components. That
is, 0.0 is the lowest intensity and 1.0 the highest.

> cr->set_source_rgb(red,green,blue);    //draw line,it's color get from the pixel of above png picture

Same here.

--Daniel




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