Skip navigation.
 
mlRe: CALayer Border, Not Inset
FROM : David Duncan
DATE : Mon Jan 07 23:03:08 2008

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
david.<email_removed>

Related mailsAuthorDate
mlCALayer Border, Not Inset Bridger Maxwell Jan 7, 19:39
mlRe: CALayer Border, Not Inset Scott Anguish Jan 7, 19:43
mlRe: CALayer Border, Not Inset Bridger Maxwell Jan 7, 21:17
mlRe: CALayer Border, Not Inset David Duncan Jan 7, 23:03
mlRe: CALayer Border, Not Inset Scott Anguish Jan 8, 21:09
mlRe: CALayer Border, Not Inset Scott Anguish Jan 8, 21:10