[cairo] Draw a single pixel or group of pixels
Gerdus van Zyl
gerdusvanzyl at gmail.com
Thu Apr 10 09:13:23 PDT 2008
I use the following:
the reason for the 0.5 larger is the little squares,sample point model
described in "How do I draw a sharp, single-pixel-wide line?" in
I don't know of any setpixel API in cairo (because cairo isnt pixel
orientated). Except if you use an image surface and manipulate the buffer
directly but that's not cairo directly. The rectangle method was fast enough
for 500 pixels @ 25fps in my case.
On Thu, Apr 10, 2008 at 5:27 PM, Joseph Fradley <joe.fradley at fradeng.com>
> 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?
> cairo mailing list
> cairo at cairographics.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo