Drawable setBounds()中的rect

来源:互联网 发布:spss绘制散点图矩阵 编辑:程序博客网 时间:2024/06/15 20:06

转载自
http://blog.csdn.net/szyangzhen/article/details/48094223
setBounds(int left, int top, int right, int bottom)

Drawable的setBounds方法有四个参数,setBounds(int left, int top, int right, int bottom),这个四参数指的是drawable将在被绘制在canvas的哪个矩形区域内(这个矩形区域的坐标是以canvas左上角为坐标原点的)。

原创粉丝点击