NSTextView, NSImage and Anti-Aliasing
NSTextView, NSImage and Anti-Aliasing
- Subject: NSTextView, NSImage and Anti-Aliasing
- From: Mijobee <email@hidden>
- Date: Fri, 18 Nov 2005 12:59:47 -0500
I'm trying to write text into an image but it looks like the text
isn't being anti-aliased. I'm not sure if I'm just seeing things or
what but I can't seem to get it to be rendered correctly. My code
looks like this:
result = [[NSImage alloc] initWithSize:size];
[result lockFocus];
[NSGraphicsContext saveGraphicsState];
[[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationHigh];
[[NSGraphicsContext currentContext] setShouldAntialias:YES];
[string drawAtPoint:NSMakePoint(0, 0) withAttributes:attrs];
[NSGraphicsContext restoreGraphicsState];
[result unlockFocus];
_______________________________________________
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