FROM : Scott Anguish
DATE : Tue Jan 08 21:10:22 2008
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.. :-)
DATE : Tue Jan 08 21:10:22 2008
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.. :-)
| 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

