Can't get image smoothing to happen
Can't get image smoothing to happen
- Subject: Can't get image smoothing to happen
- From: Charles Crowley <email@hidden>
- Date: Tue, 20 Sep 2005 14:09:18 -0700
When I write an image to an NSView using
drawAtPoint:fromRect:operation:fraction: the image comes out "jaggy".
I checked the archives and they said to make sure anti-aliasing was
happening with code like this:
[[NSGraphicsContext currentContext] setShouldAntialias: YES];
[[NSGraphicsContext currentContext] setImageInterpolation:
NSImageInterpolationHigh];
[image drawAtPoint: NSMakePoint(xOffset, yOffset)
fromRect: NSMakeRect( 0, 0, imageSize.width,
imageSize.height)
operation: NSCompositeSourceOver
fraction: 1.0];
But I tried that and I still get the jaggy image. The two calls on
the graphics context do not seem to have any effect. I must be
missing some crucial step but I can't figure out what it might be.
I notice that XCode 2.1 also draws the images jaggy. They look just
like they do in my program. Preview draws them jaggy at first but
then smoothes them after about one second. Clearly it is doing
something, but what?
Thank you, Charles Crowley
_______________________________________________
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