摘要: 一. BitmapFactory.Options 中inSampleSize的取值问题 关于inSampleSize的取值问题Google已经给出了一个推荐的算法:(https://developer.android.com/topic/performance/graphics/load-bitma 阅读全文
posted @ 2019-07-02 14:46 夜行过客 阅读(2383) 评论(0) 推荐(0) 编辑
摘要: 问题 今天无意中发现了一个问题,通过Bitmap的getWidth和getHeight方法获取到的图片尺寸与实际的尺寸(1920*1080)不一致,后来更进一步发现,把这张图片分别放在raw、drawable-mdpi、drawable-hdpi、drawable-xhdpi、drawable-xx 阅读全文
posted @ 2019-07-02 11:27 夜行过客 阅读(2271) 评论(0) 推荐(0) 编辑