2
我有一个在屏幕上绘制一些形状的应用程序。问题在于抗锯齿功能不适用于使用Path绘制的形状,但只能在缩放(缩放)之后使用。 另一方面,绘图圆(即使在缩放后)也没有问题。缩放工作正常,只是后来形状不够锐利。在画布上缩放后在路径上消除锯齿
...
// Matrix m = new Matrix();
// m.setValues(createMatrix());
// canvas.concat(m);
//or
canvas.scale(6.0f, 6.0f); // the upper code is used on real, but the same problem occures with this call
...
RectF oval = new RectF(x, y, x + width, y + height);
currentPaint.setAntiAlias(true);
canvas.drawOval(oval, currentPaint);
currentPaint.setAntiAlias(true);
canvas.drawPath(getPathOfShape(), currentPaint);
有人可以帮助我吗?