File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
android/src/main/java/com/reactnativecommunity/imageeditor Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -363,10 +363,10 @@ private Bitmap cropAndResize(
363
363
}
364
364
}
365
365
366
- int cropX = ( int ) Math .floor (newX / (float ) outOptions .inSampleSize );
367
- int cropY = ( int ) Math .floor (newY / (float ) outOptions .inSampleSize );
368
- int cropWidth = ( int ) Math .floor (newWidth / (float ) outOptions .inSampleSize );
369
- int cropHeight = ( int ) Math .floor (newHeight / (float ) outOptions .inSampleSize );
366
+ int cropX = Math .round (newX / (float ) outOptions .inSampleSize );
367
+ int cropY = Math .round (newY / (float ) outOptions .inSampleSize );
368
+ int cropWidth = Math .round (newWidth / (float ) outOptions .inSampleSize );
369
+ int cropHeight = Math .round (newHeight / (float ) outOptions .inSampleSize );
370
370
float cropScale = scale * outOptions .inSampleSize ;
371
371
372
372
Matrix scaleMatrix = new Matrix ();
You can’t perform that action at this time.
0 commit comments