canvas.translate(x, 0)

来源:互联网 发布:阿里云备案换服务器 编辑:程序博客网 时间:2024/06/17 16:07

void android.graphics.Canvas.translate(float dx, float dy)

public void translate (float dx, float dy)

 

Since: API Level 1

 

Preconcat the current matrix with the specified translation
在当前坐标的基础上平移

Parameters

 

dx

The distance to translate in X

在X方向上平移的距离

dy

The distance to translate in Y
 在Y方向上平移的距离