diff --git a/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java b/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java index b515aa7..8800f28 100644 --- a/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java +++ b/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java @@ -514,7 +514,7 @@ private void drawHandleShadows(Canvas canvas) { private void setMatrix() { mMatrix.reset(); - mMatrix.setTranslate(mCenter.x - mImgWidth * 0.5f, mCenter.y - mImgHeight * 0.5f); + mMatrix.setTranslate(mCenter.x - mImgWidth * mScale * 0.5f, mCenter.y - mImgHeight * mScale * 0.5f); mMatrix.postScale(mScale, mScale, mCenter.x, mCenter.y); mMatrix.postRotate(mAngle, mCenter.x, mCenter.y); }