Cropping a Stream of Bitmap at a certain coordinates everytime that are coming from the LRU cache?
0
I need help in cropping a Stream of a bitmap that is being fetched through LRU cache, my job is to Crop the Images at certain coordinates that should be defined once and then all the images should be cropped at that very coordinates. Currently, we have used the DragReactangle in android but its not cropping accurately. Heres are my three methods: private static Bitmap ScaleDownBitmap(Bitmap originalImage, Boolean filter) { float ratio = Math.min((float) mWidth_ImageView / originalImage.getWidth(), (float) mWidth_ImageView / originalImage.getHeight()); int width = Math.round(ratio * (float) originalImage.getWidth()); int height = Math.round(ratio * (float) originalImage.getHeight()); return Bitmap.createScaledBitmap(originalImage, width, height, filter); } public stat