Share via


UIImage.StretchableImage(IntPtr, IntPtr) Method

Definition

Creates a stretchable image with the specified parameters. Deprecated in iOS 5, but still useful since the replacement is known to have bugs.

[Foundation.Export("stretchableImageWithLeftCapWidth:topCapHeight:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public virtual UIKit.UIImage StretchableImage(IntPtr leftCapWidth, IntPtr topCapHeight);
[<Foundation.Export("stretchableImageWithLeftCapWidth:topCapHeight:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
abstract member StretchableImage : nativeint * nativeint -> UIKit.UIImage
override this.StretchableImage : nativeint * nativeint -> UIKit.UIImage

Parameters

leftCapWidth
IntPtr

nativeint

Width of the left cap to be left unscaled.

topCapHeight
IntPtr

nativeint

Height tof the top cap to be left unscaled.

Returns

A stretchable image.

Attributes

Remarks

The more versatile replacement method that was introduced in iOS 5 crashes under some conditions, for more information, see: https://openradar.appspot.com/11411000.

This can be used from a background thread.

Applies to