UIView.ResizableSnapshotView(CGRect, Boolean, UIEdgeInsets) UIView.ResizableSnapshotView(CGRect, Boolean, UIEdgeInsets) Method

Definition

Efficiently creates a rendering of this object's current appearance within .

[Foundation.Export("resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIView ResizableSnapshotView (CoreGraphics.CGRect rect, bool afterScreenUpdates, UIKit.UIEdgeInsets capInsets);
abstract member ResizableSnapshotView : CoreGraphics.CGRect * bool * UIKit.UIEdgeInsets -> UIKit.UIView
override this.ResizableSnapshotView : CoreGraphics.CGRect * bool * UIKit.UIEdgeInsets -> UIKit.UIView

Parameters

rect
CGRect CGRect

The rectangle to capture.

afterScreenUpdates
Boolean Boolean

true if the capture should wait for pending redraws.

capInsets
UIEdgeInsets UIEdgeInsets

The stretchable portion of the rendered content.

Returns

Remarks

This method is efficient, but does not apply graphical effects such as screen blur. If such effects are needed, developers should use DrawViewHierarchy(CGRect, Boolean) instead.

Applies to