0
我在gdi +上畫布上的圖像出現問題,我正在使用下面的代碼,但是我發現在邊上有別名。如何在gdi +中旋轉圖像時避免別名?
myPathMatrix.Rotate(GetDCAngle(), MatrixOrderAppend);
myPathMatrix.Translate(
GetDCX(),
GetDCY(),
MatrixOrderAppend);
canvas->SetTransform(&myPathMatrix);
canvas->Draw(XXX);
我使用下面的代碼來刪除別名,但失敗。
canvas->SetInterpolationMode(InterpolationMode::InterpolationModeHighQualityBicubic);
canvas->SetSmoothingMode(SmoothingModeAntiAlias);
如何刪除旋轉圖像邊緣的別名。
非常感謝!