Re: CALayer Border, Not Inset
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