Düzenle

Aracılığıyla paylaş


UIImage.StretchableImage(nint, nint) 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.ThreadSafe]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIImage StretchableImage (nint leftCapWidth, nint topCapHeight);
abstract member StretchableImage : nint * nint -> UIKit.UIImage
override this.StretchableImage : nint * nint -> UIKit.UIImage

Parameters

leftCapWidth
System.System.IntPtr System.nativeint

Width of the left cap to be left unscaled.

topCapHeight
System.System.IntPtr System.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