RE: Weird problem with NSBezierpath fill method
RE: Weird problem with NSBezierpath fill method
- Subject: RE: Weird problem with NSBezierpath fill method
- From: Vinay Prabhu <email@hidden>
- Date: Fri, 10 Nov 2006 10:26:56 +0530
- Importance: Normal
The path is actually generated from the 32-bit masked image.
The points and directions are found along the masking region with an
algorithm
and created a path using those points and directions.
I have tried using both winding rules available. But in both cases the
region enclosing the path
did not get filled by the "fill" method.
I am wondering why it works for simple rect and not for complex paths?
-----Original Message-----
From: Andrew Farmer [mailto:email@hidden]
Sent: Friday, November 10, 2006 1:50 AM
To: Vinay Prabhu
Cc: email@hidden
Subject: Re: Weird problem with NSBezierpath fill method
On 09 Nov 06, at 03:58, Vinay Prabhu wrote:
<...>
> [m_pInnerOutline setWindingRule:NSEvenOddWindingRule];
<...>
>
> The "stroke" method works fine, but the "fill" method will not work.
> I had saved the drawImage as tif image and attached with the mail.
>
> I am not understanding why "fill" method is not working !!!!
> If bezier path contains only rectangle, the fill method works fine.
How is your path generated? I'm wondering if it's got the wrong winding
direction or something. Try adding points in the opposite order and see
if that makes any difference.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden