展开全部
Fills a circular or elliptical arc covering the specified rectangle.
The resulting arc begins at startAngle and extends for arcAngle degrees. Angles are interpreted such that 0 degrees is at the 3 o'clock position. A positive value indicates a counter-clockwise rotation while a negative value indicates a clockwise rotation.
The center of the arc is the center of the rectangle whose origin is (x, y) and whose size is specified by the width and height arguments.
The resulting arc covers an area width + 1 pixels wide by height + 1 pixels tall.
The angles are specified relative to the non-square extents of the bounding rectangle such that 45 degrees always falls on the line from the center of the ellipse to the upper right corner of the bounding rectangle. As a result, if the bounding rectangle is noticeably longer in one axis than the other, the angles to the start and end of the arc segment will be skewed farther along the longer axis of the bounds.Parameters:
x - the x coordinate of the upper-left corner of the arc to be filled.
y - the y coordinate of the upper-left corner of the arc to be filled.
width - the width of the arc to be filled.
height - the height of the arc to be filled.
startAngle - the beginning angle.
arcAngle - the angular extent of the arc, relative to the start angle.
翻译:
填充覆盖指定矩形的圆形或椭圆形弧。
生成的弧从startAngle开始并延伸arcAngle度。 角度被解62616964757a686964616fe4b893e5b19e31333431336134释为0度位于3点钟位置。 正值表示逆时针旋转,而负值表示顺时针旋转。
弧的中心是矩形的中心,其原点是(x,y),其大小由width和height参数指定。
得到的弧覆盖区域宽度+高1像素宽×高1像素。相对于边界矩形的非方形范围指定角度,使得45度总是落在从椭圆的中心到边界矩形的右上角的线上。 因此,如果边界矩形在一个轴上明显长于另一个轴,则弧段开始和结束的角度将沿着边界的长轴进一步偏斜。
x - 要填充的弧的左上角的x坐标。
y - 要填充的弧的左上角的y坐标。
width - 要填充的弧的宽度。
height - 要填充的弧的高度。
startAngle - 开始角度。
arcAngle - 弧的角度范围,相对于起始角度。