[cairo] Draw a single pixel or group of pixels

Dirk Schönberger dirk.schoenberger at sz-online.de
Thu Apr 10 09:28:13 PDT 2008


> Hello,
>
> I'm sure there must be a way somewhere but I haven't been able to find it.
> How do you draw just a single pixel? or better yet a group of disjoint
> pixels at specific 'x,y' locations?
>
> Joe

I am afraid that the concept of a pixel is not longer available in a Cairo
style API.
All you can do is to create one or multiple rectangular path elements and
hope hat they match to single pixels after rendering them to your output
device.

Regatds
Dirk



More information about the cairo mailing list