• 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
Nicely scaling a CALayer (interpolation?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nicely scaling a CALayer (interpolation?)


  • Subject: Nicely scaling a CALayer (interpolation?)
  • From: Martin <email@hidden>
  • Date: Tue, 26 Feb 2008 10:42:44 +0100

Hi,

I've got a CALayer with a CGImage as its contents. The CALayer's size is smaller than the image's original size, so the image is scaled down. But the scaled image is pixelated and I'd like a smooth image.

I think that I need to tell my CALayer to use interpolation rather than linear scaling, right?
I've tried to do that but this doesn't work:
imageLayer.minificationFilter = kCAFilterNearest;


What am I missing?
Can I do that directly in CoreAnimation or is it something I have to do to my CGImage before passing it to the CALayer?


Thanks,
-Martin.
_______________________________________________

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


  • Follow-Ups:
    • Re: Nicely scaling a CALayer (interpolation?)
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Spotlight Importer
  • Next by Date: Re: Observing with GC
  • Previous by thread: Re: Spotlight Importer
  • Next by thread: Re: Nicely scaling a CALayer (interpolation?)
  • Index(es):
    • Date
    • Thread