最大化图像并保持最佳质量

maximize image and keep the best quality

在 android 上,他们是否有任何方法可以最大化位图(以全屏显示)并同时尽可能保持最佳质量?实际上我喜欢这样:

aMatrix.postScale(ARatio, ARatio);  
createBitmap(aBitmap{src}, round(aSrcRect.Left){X}, round(aSrcRect.top){Y}, round(aSrcRect.width){Width}, round(aSrcRect.height){height}, aMatrix{m}, True{filter});

但是调整大小后的位图质量很慢:(

不,不可能将位图图像的图像质量提高到您已有的图像质量之外。您正在寻找的是可缩放矢量图形或 .svg,您可以在 Android 此处找到有关使用它们的更多信息:

https://developer.android.com/studio/write/vector-asset-studio.html