android弧线的绘制

上传人:luoxia****01802 文档编号:69711635 上传时间:2019-01-14 格式:DOCX 页数:2 大小:16.08KB
返回 下载 相关 举报
android弧线的绘制_第1页
第1页 / 共2页
android弧线的绘制_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《android弧线的绘制》由会员分享,可在线阅读,更多相关《android弧线的绘制(2页珍藏版)》请在金锄头文库上搜索。

1、/画弧线p.setStyle(Paint.Style.STROKE);RectF oval1 = new RectF(150, 20, 280, 80);canvas.drawArc(oval1, 90, 180, true, p);此处绘制的是D沿底点旋转360度的形状!=publicRectF(float left, float top, float right, float bottom)Since:API Level 1Create a new rectangle with the specified coordinates. Note: no range checking is pe

2、rformed, so the caller must ensure that left = right and top = 360, the start angle is treated as start angle modulo 360.If the sweep angle is = 360, then the oval is drawn completely. Note that this differs slightly from SkPath:arcTo, which treats the sweep angle modulo 360. If the sweep angle is n

3、egative, the sweep angle is treated as sweep angle modulo 360The arc is drawn clockwise. An angle of 0 degrees correspond to the geometric angle of 0 degrees (3 oclock on a watch.)Parameters /使用自定义的oval画弧线ovalThe bounds of oval used to define the shape and size of the arc/弧线的起始角度,此角度按照正常的0360坐标轴划分,s

4、tartAngleStarting angle (in degrees) where the arc begins/弧线的角度,比如D的弧线角度就是180度,设置其实角度后,android是按照逆时针的方向开始绘图的sweepAngleSweep angle (in degrees) measured clockwiseuseCenterIf true, include the center of the oval in the arc, and close it if it is being stroked. This will draw a wedgepaintThe paint used to draw the arc

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 外语文库 > 英语读物

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号