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


_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to