java fillarc_java中g.fillArc(x,y, d, d,180,180)什么意思

展开全部

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  - 弧的角度范围,相对于起始角度。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值