Antialiasing an Image
Antialiasing an Image
- Subject: Antialiasing an Image
- From: Sanford Selznick <email@hidden>
- Date: Sun, 16 Jun 2002 18:30:25 -0700
Hello,
I have an NSImage that I've read in from a GIF resource. I have an
NSView into which I draw the image with drawAtPoint.
How do I get the image to draw antialiased? (You know, a little
blurry around the edges? ;-)
I've tried uttering the following message before my drawAtPoint
call in my view's drawRect function to no avail.
[[NSGraphicsContext currentContext] setShouldAntialias:YES];
(It must be pretty funny for you Cocoa programmers to watch us
Carbon guys stumble around, huh?)
Thank you,
Sanford
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.