The idea is that the cap width represents the part of your image that won't be stretched when the image is scaled. For example, take a circle and set the leftCapWidth to half the circles width. Then stretch horizontally and you end up with something that looks like a typical UIslider track image.

Luke

Sent from my iPhone.

On Nov 8, 2009, at 4:27 PM, Tharindu Madushanka <tharindu...@gmail.com> wrote:

Hi

I have been trying to figure out whether UIImage method
stretchableImageWithLeftCapWidth:topCapHeight:<http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html#//apple_ref/occ/instm/UIImage/stretchableImageWithLeftCapWidth:topCapHeight: >could
be used in my problem. But the documentation for this seems to be
little confusing for me could anyone just tell what is this leftCapWidth and
topCapHeight in simple terms.

Thanks

Tharindu Madushanka

On Mon, Nov 9, 2009 at 12:36 AM, Luke Hiesterman <luket...@apple.com> wrote:
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com

This email sent to luket...@apple.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to