Android-ScalableImageView icon indicating copy to clipboard operation
Android-ScalableImageView copied to clipboard

Question: how to use center-crop, but not from the center , but from a different point?

Open AndroidDeveloperLB opened this issue 1 year ago • 0 comments

Is there something similar to center-crop, yet I have the choice where to focus in terms of specific point/rectangle in the bitmap? I want to make sure a specific point/rectangle is shown while fitting&cropping. How can I do it? Currently the only similar thing that exists officially for ImageView is center-crop, but it's only to the center. What if the most important part in the image is at the bottom, instead? Or 10% (or 10px) from the bottom, etc... ? Or if there is a specific region in the bitmap that's most important?

AndroidDeveloperLB avatar Oct 01 '24 10:10 AndroidDeveloperLB