Share via


CGImage.WithImageInRect(CGRect) 方法

定义

使用矩形中指定的尺寸创建新图像

public CoreGraphics.CGImage WithImageInRect (CoreGraphics.CGRect rect);
member this.WithImageInRect : CoreGraphics.CGRect -> CoreGraphics.CGImage

参数

rect
CGRect

要复制的区域。

返回

适用于