Re: Cairo Fill Rule - Alternate

Simon Budig <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Adhir Garg ([email protected]) wrote:
> 
> I looked at MSDN GDI functionality at
> http://msdn.microsoft.com/en-us/library/windows/desktop/dd145080(v=vs.85).aspx
> It lists out ALTERNATE
> Selects alternate mode (fills the area between odd-numbered and
> even-numbered polygon sides on each scan line).

You misunderstood the description.

ALTERNATE "fills the area between odd-numbered and even-numbered polygon
sides on each scan line."

Note the crucial word "scan line". That is a row of pixels. Within this
rows the pixels switch between "filling" and "not filling" depending on
the number of polygon sides crossed (even or odd).

That is the same as CAIRO_FILL_RULE_EVEN_ODD.

That the description explicitely mentions "five sided polygons" is
misleading.

Bye,
        Simon

-- 
              [email protected]              http://simon.budig.de/
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.