diff --git a/roundedimageview/src/main/java/com/makeramen/roundedimageview/RoundedDrawable.java b/roundedimageview/src/main/java/com/makeramen/roundedimageview/RoundedDrawable.java index 8f31d19..f36e007 100644 --- a/roundedimageview/src/main/java/com/makeramen/roundedimageview/RoundedDrawable.java +++ b/roundedimageview/src/main/java/com/makeramen/roundedimageview/RoundedDrawable.java @@ -197,7 +197,8 @@ private void updateShaderMatrix() { } mShaderMatrix.setScale(scale, scale); - mShaderMatrix.postTranslate((int) (dx + 0.5f), (int) (dy + 0.5f)); + mShaderMatrix.postTranslate((int) (dx + 0.5f) + mBorderWidth / 2, + (int) (dy + 0.5f) + mBorderWidth / 2); break; case CENTER_INSIDE: