-
Notifications
You must be signed in to change notification settings - Fork 110
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
code in calculateInSampleSize method #3
Comments
let me tell you , long totalPixels = width * height / inSampleSize;
final long totalReqPixelsCap = reqWidth * reqHeight * 2;
while (totalPixels > totalReqPixelsCap) {
inSampleSize *= 2;
totalPixels /= 2;
} This code is to deal with a large picture of the length or width of the case.It is OR,not AND.So I chose the code —— |
i wrote a compare
and the output:
|
@hotstu hi,friend!You need to use real photo data! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
` long totalPixels = width * height / inSampleSize;
i dont quite understand the code here, maybe
long totalPixels = width * height / inSampleSize;
should belong totalPixels = width * height / (inSampleSize * inSampleSize )
The text was updated successfully, but these errors were encountered: