Re: NSBezierPath Fill and Stroke woes;
Re: NSBezierPath Fill and Stroke woes;
- Subject: Re: NSBezierPath Fill and Stroke woes;
- From: Scott Thompson <email@hidden>
- Date: Thu, 21 Jul 2005 09:40:51 -0500
If you run this code in a view's -drawRect: method, you'll see some
weird things with the first set (loBadFill): even though I am
filling the _same_ rect twice in a row with a different color, the
second fill doesn't completely cover the rect (i.e. I get a bit of
bleed of the first fill color on the edges). However, when I use
the non-translated one from the second set (loGoodFill), I get what
I would expect (no bleed of the magenta, and only cyan showing).
And I have to use the translated set, as you can see with the
loBadStroke one (the stroke is not crisp).
Is this a known issue, or is something else weird?
I don't think it's an "issue" at all. You are seeing the color from
the second rectangle composited on top of the color of the first
rectangle where the antialiasing of the pixel edges occur.
I have tried it on both Tiger and Panther and get the same result.
I have also tried turning of the anti-aliasing using
"[[NSGraphicsContext currentContext] setImageInterpolation:
NSImageInterpolationNone];". Any thoughts?
That won't turn off antialiasing. That will turn off image
interpolation. The two are not the same.
try "setShouldAntialias:"
Scott
_______________________________________________
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