Re: Cairo Fill Rule - Alternate
Adhir Garg <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAAtGbNixBaANaYFKKNRL+RT3pt3nOJ=-+=FDkqY9CYwmYoJ-Nw@mail.gmail.com> |
Hi Simon, Thanks for clarification. I think you may be right. I would try this. REgards Adhir ----------------------------------------------------------- Adhir Kumar Garg http://adhirgarg.blogspot.com ----------------------------------------------------------- On Thu, Oct 25, 2012 at 1:51 PM, Simon Budig <[email protected]> wrote: > 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 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo