[cairo] A Question

Bill Spitzak spitzak at gmail.com
Wed Feb 27 15:55:11 UTC 2019


No that is incorrect. A line width less than one pixel will color in single
pixels with less than 100% opaqueness. It can actually color in 2 pixels,
if Cairo thinks the line width straddles the position between the pixels.
The line width NEVER "rounds to zero".


On Wed, Feb 27, 2019 at 2:05 AM Elmar Haneke <elmar at haneke.de> wrote:

>
> >    A question on Cairo: The X Y inputs to Cairo drawing functions are
> > type double.
> >
> > Dose this imply that pixel or line spacing could be less than 1.0?
> >
> > Could the spacing be say 0.5 or 0.25?
>
>
> On devices where an coordinate-distance of 1.0 does map to an single
> pixel this does make only limited sense as the space or line width might
> be rounded to 0.
>
>
> But for high resolution devices as printers or vector-graphics as PDF
> you can define coordinates to 72DPI or 300DPI or if you prefer to work
> metric even to millimeters.
>
> On such an setting an spacing of 0.25 does make an significant difference.
>
>
> Elmar
>
>
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20190227/8b4c4bc3/attachment.html>


More information about the cairo mailing list