From a54e73d5c394e163d752ce65b060e4394611e2fd Mon Sep 17 00:00:00 2001 From: Nishanth-Risor <80327176+Nishanth-Risor@users.noreply.github.com> Date: Wed, 21 Jul 2021 12:54:15 +0530 Subject: [PATCH] Update ImageColorPickerView.java --- .../colorpickerdialog/views/picker/ImageColorPickerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagepicker/src/main/java/me/jfenn/colorpickerdialog/views/picker/ImageColorPickerView.java b/imagepicker/src/main/java/me/jfenn/colorpickerdialog/views/picker/ImageColorPickerView.java index c7c6ac4..4194121 100644 --- a/imagepicker/src/main/java/me/jfenn/colorpickerdialog/views/picker/ImageColorPickerView.java +++ b/imagepicker/src/main/java/me/jfenn/colorpickerdialog/views/picker/ImageColorPickerView.java @@ -223,7 +223,7 @@ public void draw(Canvas canvas) { Path path = new Path(); path.addCircle(this.x.val(),this.y.val(), circleWidth, Path.Direction.CCW); canvas.clipPath(path); - Rect srcRect=new Rect(x-2, y-2, x+3, y+3); + Rect srcRect=new Rect(x-14, y-14, x+15, y+15); Rect destRect=new Rect(this.x.val()-circleWidth,this.y.val()-circleWidth , this.x.val()+circleWidth, this.y.val()+circleWidth ); canvas.drawBitmap(bitmap, srcRect, destRect, null); canvas.drawCircle(this.x.val(), this.y.val(), 15, strokeInnerPaint);