我在 gdi+ 的画布上旋转图像时遇到问题,我正在使用以下代码,但是我发现边缘有别名。
myPathMatrix.Rotate(GetDCAngle(), MatrixOrderAppend);
myPathMatrix.Translate(
GetDCX(),
GetDCY(),
MatrixOrderAppend);
canvas->SetTransform(&myPathMatrix);
canvas->Draw(XXX);
我使用以下代码删除别名,但失败了。
canvas->SetInterpolationMode(InterpolationMode::InterpolationModeHighQualityBicubic);
canvas->SetSmoothingMode(SmoothingModeAntiAlias);
如何删除旋转图像边缘的别名。
非常感谢!