提交 eb5d54b9 编写于 作者: H huangziwei

rename & readme

上级 5a8f2736
......@@ -138,7 +138,7 @@ public class DrawUtil {
}
// xy为在涂鸦中旋转后的坐标,该函数逆向计算出未旋转前的坐标
public static float[] restoreRotatePointInGriffiti(int nowDegree, int oldDegree, float x, float y, float mOriginalPivotX, float mOriginalPivotY) {
public static float[] restoreRotatePointInGraffiti(int nowDegree, int oldDegree, float x, float y, float mOriginalPivotX, float mOriginalPivotY) {
int degree = nowDegree - oldDegree;
if (degree != 0) {
float px = mOriginalPivotX, py = mOriginalPivotY;
......
......@@ -57,7 +57,7 @@ public class GraffitiText implements Undoable {
}
public void setXy(int currentRotate, float x, float y) {
float[] xy = restoreRotatePointInGriffiti(currentRotate, mRotateDegree, x, y, mPivotX, mPivotY);
float[] xy = restoreRotatePointInGraffiti(currentRotate, mRotateDegree, x, y, mPivotX, mPivotY);
mX = xy[0];
mY = xy[1];
}
......
......@@ -116,6 +116,8 @@ public static class GraffitiParams implements Parcelable {
[android图片涂鸦,具有设置画笔,撤销,缩放移动等功能(二)](http://blog.csdn.net/u012964944/article/details/52769273)
[android图片涂鸦——旋转与文字功能的实现原理](http://blog.csdn.net/u012964944/article/details/62889219)
### 更新日志
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册