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>
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 mails | Author | Date |
|---|---|---|
| Bridger Maxwell | Jan 7, 19:39 | |
| Scott Anguish | Jan 7, 19:43 | |
| Bridger Maxwell | Jan 7, 21:17 | |
| David Duncan | Jan 7, 23:03 | |
| Scott Anguish | Jan 8, 21:09 | |
| Scott Anguish | Jan 8, 21:10 |






Cocoa mail archive

