Skip to content

Commit c3b2cd6

Browse files
committed
Update
1 parent b5f52b0 commit c3b2cd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎CustomView/Advance/[3]Canvas_Convert.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Matrix(矩阵) | getMatrix, setMatrix, concat | 实际上画布的位移,缩
132132
// 将坐标系原点移动到画布正中心
133133
canvas.translate(mWidth / 2, mHeight / 2);
134134

135-
RectF rect = new RectF(0,0,400,-400); // 矩形区域
135+
RectF rect = new RectF(0,-400,400,0); // 矩形区域
136136

137137
mPaint.setColor(Color.BLACK); // 绘制黑色矩形
138138
canvas.drawRect(rect,mPaint);
@@ -155,7 +155,7 @@ Matrix(矩阵) | getMatrix, setMatrix, concat | 实际上画布的位移,缩
155155
// 将坐标系原点移动到画布正中心
156156
canvas.translate(mWidth / 2, mHeight / 2);
157157

158-
RectF rect = new RectF(0,0,400,-400); // 矩形区域
158+
RectF rect = new RectF(0,-400,400,0); // 矩形区域
159159

160160
mPaint.setColor(Color.BLACK); // 绘制黑色矩形
161161
canvas.drawRect(rect,mPaint);

0 commit comments

Comments
 (0)