Nicely scaling a CALayer (interpolation?)
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