Re: CALayer Border, Not Inset
Re: CALayer Border, Not Inset
- Subject: Re: CALayer Border, Not Inset
- From: Scott Anguish <email@hidden>
- Date: Tue, 8 Jan 2008 15:10:22 -0500
On Jan 7, 2008, at 5:03 PM, David Duncan wrote:
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.
Oh, well, or that.. :-)
_______________________________________________
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