Re: NSBezierPath to NSImage with subpixel rendering
Re: NSBezierPath to NSImage with subpixel rendering
- Subject: Re: NSBezierPath to NSImage with subpixel rendering
- From: Gregory 'guardian' Pakosz <email@hidden>
- Date: Wed, 09 Jan 2008 13:34:56 +0100
Is antialiasing turned on in your graphics context?
[[NSGraphicsContext currentContext] setShouldAntialias:YES]
adding this didn't help unfortunately :( although it thought it was
enabled by default.
http://michelf.com/weblog/2006/subpixel-antialiasing-achilles-heel/
This only seems to relate to LCD antialiasing of text, which is not what
you're wanting.
well what you seem to call "LCD antialising" is subpixel rendering, and
it makes sense for anything drawn to the screen.
in the meantime, by using
NSBitmapImageRep *rep = [[self
bitmapImageRepForCachingDisplayInRect:[self bounds]] retain];
NSImage *image = [[NSImage alloc] initWithSize:[self bounds]];
[image addRepresentation:rep];
[self cacheDisplayInRect:[self bounds] toBitmapImageRep:rep];
i was able to get back an NSImage with subpixel precision. now i am
curious about whether or not it's possible to achieve the same result by
directly rendering into the NSImage instance.
cheers,
g.
Jonathon Mah
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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