Re: continued problem:How to get the color of a pixel(x, y) on the window?
- From: Daniel Elstner <daniel kitta googlemail com>
- To: chunlong84 <chunlong84 gmail com>
- Cc: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: continued problem:How to get the color of a pixel(x, y) on the window?
- Date: Wed, 10 Jun 2009 01:17:43 +0200
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]