Re: NSView disable anti-aliasing ?
Re: NSView disable anti-aliasing ?
- Subject: Re: NSView disable anti-aliasing ?
- From: Felix Franz <email@hidden>
- Date: Fri, 24 Nov 2006 12:47:02 +0100
On Nov 24, 2006, at 11:36 AM, maximilian marcoll wrote:
hi!
i didn't find anything about this in the docs, except for the CG
aliasing example.
but i don't use quartz, so it doesn't help since i mainly draw
NSBezierPaths
how can i turn off anti-aliasing for a nsview object?
You can use NSGraphicsContext setShouldAntialias: -method. For example:
- (void) drawRect: (NSRect) rect {
NSGraphicsContext* gc = [NSGraphicsContext currentContext];
[gc setShouldAntialias:NO];
// ... your drawing code
}
(typed in Mail ... )
felix
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden