CALayer contents and image aspect ratio
CALayer contents and image aspect ratio
- Subject: CALayer contents and image aspect ratio
- From: "Wayne Shao" <email@hidden>
- Date: Tue, 1 Jul 2008 20:39:51 -0700
Hi,
I provide a CGImageRef as the layer content. When the bounds of layer
is changed, the image seems to be scaled to fit the bounds.
Is there an option to keep the image aspect ratio? what possible
key-value can I set for the layer's style property?
Thanks,
--
Wayne Shao
_______________________________________________
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