Share via


CGContext.AddEllipseInRect(CGRect) 方法

定义

添加一个适合指定 rect的椭圆。

public void AddEllipseInRect (CoreGraphics.CGRect rect);
member this.AddEllipseInRect : CoreGraphics.CGRect -> unit

参数

rect
CGRect

椭圆的边框。

注解

椭圆在 中 rect居中,其中定义了主要轴和次要轴,以便椭圆接触 rect的边缘。 椭圆是一个完整的子路径,控制点按顺时针顺序指定。

适用于