Skip to content

Commit

Permalink
Update ImageColorPickerView.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishanth-Risor authored Jul 21, 2021
1 parent 75ca21f commit a54e73d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a54e73d

Please sign in to comment.