[cairo] Cairo Fill Rule - Alternate
Adhir Garg
adhir.garg at gmail.com
Thu Oct 25 02:43:10 PDT 2012
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 <simon at budig.de> wrote:
> Adhir Garg (adhir.garg at gmail.com) 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
>
> --
> simon at budig.de http://simon.budig.de/
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
More information about the cairo
mailing list