• 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
CALayer contents and image aspect ratio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: NSScrollView responding to changes in alpha
  • Next by Date: Re: exec(uting) Safari - How (newbie)
  • Previous by thread: NSScrollView responding to changes in alpha
  • Next by thread: Re: CALayer contents and image aspect ratio
  • Index(es):
    • Date
    • Thread