Re: Drawing an image via 9 slices?
Re: Drawing an image via 9 slices?
- Subject: Re: Drawing an image via 9 slices?
- From: Ashley Clark <email@hidden>
- Date: Wed, 22 Oct 2008 18:26:41 -0500
On Oct 22, 2008, at 6:21 PM, Randall Meadows wrote:
I'd have sworn in times past I've run across a Cocoa method that
takes 9 "slice" of an image, and expands the middle piece while
retaining the outer 8 pieces to create an "expandable" image.
(Imagine a button image with a custom border, but a plain gray
middle. using this alleged method, you could draw that image at any
size, the border looks correct at all sizes, because only the middle
slice (both horizontally and vertically) grows.)
Can anyone refresh my memory of what this beast is? Or am I
hallucinating (again)?
It's new in Leopard and not documented well (or at all?) outside of
the header file. Look in NSCell.h for NSDrawNinePartImage though.
Ashley
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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