GTKD Cairo get pixel color

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 30 15:20:23 PST 2015


On Wednesday, 30 December 2015 at 20:44:44 UTC, TheDGuy wrote:
> Hello,
>
> is there any way to get the pixel color of a single pixel by x 
> and y coordinates of a context?

render to a png back buffer.

see cairo_image_surface_create_for_data

then you'll be able to access the data and, at the same time, to 
blit your buffer to screen.


More information about the Digitalmars-d-learn mailing list