• 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
Re: CALayer Border, Not Inset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer Border, Not Inset


  • Subject: Re: CALayer Border, Not Inset
  • From: David Duncan <email@hidden>
  • Date: Mon, 7 Jan 2008 14:03:08 -0800

On Jan 7, 2008, at 12:17 PM, Bridger Maxwell wrote:

Thanks Scott, but that is not quite what I am looking for. That solution
would normally be fine, but I need to be able to resize the CALayer with the
picture displayed in it. Is there a way to tell the image within it to
resize, but not fill the whole bounds?


Implement a layer delegate that handles the -drawLayer:inContext: message, then draw the image yourself inset from the layer's edges enough to cover whatever you need.
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

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: CALayer Border, Not Inset
      • From: Scott Anguish <email@hidden>
References: 
 >CALayer Border, Not Inset (From: "Bridger Maxwell" <email@hidden>)
 >Re: CALayer Border, Not Inset (From: Scott Anguish <email@hidden>)
 >Re: CALayer Border, Not Inset (From: "Bridger Maxwell" <email@hidden>)

  • Prev by Date: Re: Core Data: case insensitive "equals" predicate strings!?
  • Next by Date: Interface Builder Layer Transitions
  • Previous by thread: Re: CALayer Border, Not Inset
  • Next by thread: Re: CALayer Border, Not Inset
  • Index(es):
    • Date
    • Thread