No. I’d love for someone to correct me, but I accepted the load/resize approach you tried as a compromise.
Here are the steps for anyone browsing:
- Calculate the maximum possible
inSampleSizethat still yields an image larger than your target. - Load the image using
BitmapFactory.decodeFile(file, options), passing inSampleSize as an option. - Resize to the desired dimensions using
Bitmap.createScaledBitmap().