-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BitmapLoadTask the inSampleSize always 0 ? #727
Comments
This is a bug, you need to pass in the options to load and then output the width and height to the options, so that inSampleSize can be calculated correctly: final BitmapFactory.Options options = new BitmapFactory.Options(); |
To be fixed with #809 |
BitmapLoadTask File loadFile
final BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
options.inSampleSize = BitmapLoadUtils.calculateInSampleSize(options, mRequiredWidth, mRequiredHeight);
options.inJustDecodeBounds = false;
The text was updated successfully, but these errors were encountered: