• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't get image smoothing to happen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: willChangeValueForKey, Ivars and Core Data
  • Next by Date: Re: willChangeValueForKey, Ivars and Core Data
  • Previous by thread: NSDateFormatter time zone not "sticking"?
  • Next by thread: [NSUndoManager undoMenuItemTitle]
  • Index(es):
    • Date
    • Thread