Skip to content
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

图片不为正方形的时候,会失真 #9

Open
lyx0224 opened this issue Feb 15, 2019 · 1 comment
Open

图片不为正方形的时候,会失真 #9

lyx0224 opened this issue Feb 15, 2019 · 1 comment

Comments

@lyx0224
Copy link

lyx0224 commented Feb 15, 2019

To 作者
Bitmap.createScaledBitmap(bitmaps[i], subSize, subSize, true) 替换成
ThumbnailUtils.extractThumbnail(bitmaps[i], subSize, subSize);
即可生成中间位置的bitmap,图片不会失真。

@patience2013
Copy link

宽高不相等的图片被拉伸是什么原因?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants