![](/img/trans.png)
[英]Glide doesn't resize the image when the thumbnail(...) method is used
[英]How to get an thumbnail that doesn't exceed a certain size in Glide?
我正在将缩略图作为位图:
bitmap = Glide
.with(context)
.asBitmap()
.load(model)
.submit(width, height)
.get();
例如,如果我给定width = 300,height = 300,我可以得到缩略图,其缩略图的宽度= 300,height =400。这是由于图像的长宽比所致。
如何获得缩小的缩略图,该缩略图会因缩放而减小而不是增大? 使图像不超过300 * 300
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.