【发布时间】:2017-09-15 12:46:38
【问题描述】:
我尝试像这样调整图像的大小:
aPaint.setAntiAlias(true); // Enabling this flag will cause all draw operations that support antialiasing to use it.
aPaint.setFilterBitmap(True); // enable bilinear sampling on scaled bitmaps. If cleared, scaled bitmaps will be drawn with nearest neighbor sampling, likely resulting in artifacts.
apaint.setDither(true); // Enabling this flag applies a dither to any blit operation where the target's colour space is more constrained than the source.
aCanvas.drawBitmap(aBitmap, aJSrcRect, aJDestRectf, apaint);
但是我没有很好的抗锯齿图像(它是抗锯齿的,但不是很好)。这是一张显示我的问题的图片
如何提高android下的抗锯齿质量?
【问题讨论】:
-
你找到解决办法了吗?
标签: android android-canvas android-graphics android-paint