rect( x , y , width , height );//描述矩形路径fillRect( x , y , width , heigth );//填充一个矩形strokeRect( x , y , width , heigth );//描边一个矩形
以上是快捷绘制矩形的函数,你可能要问有fillRect和strokeRect还要rect那个干吗?
下面是三种不同的方式绘制矩形
本文共 246 字,大约阅读时间需要 1 分钟。
rect( x , y , width , height );//描述矩形路径fillRect( x , y , width , heigth );//填充一个矩形strokeRect( x , y , width , heigth );//描边一个矩形
以上是快捷绘制矩形的函数,你可能要问有fillRect和strokeRect还要rect那个干吗?
下面是三种不同的方式绘制矩形
转载于:https://www.cnblogs.com/wufangfang/p/6373637.html