1
、私はそれが角度Nを回転させる必要がある、キャンバス上の特定の角度で画像を描画する必要があり、その中心がX上で、Ygdi +でキャンバスに画像を描画するサンプルがありますか?
Matrix myPathMatrix;
myPathMatrix.Translate(x, y, MatrixOrderAppend);
myPathMatrix.Rotate(angle, MatrixOrderAppend);
canvas->SetTransform(&myPathMatrix);
Draw(canvas);// draw the image
myPathMatrix.Rotate(-angle, MatrixOrderAppend);
myPathMatrix.Translate(-x, -y, MatrixOrderAppend);
canvas->SetTransform(&myPathMatrix);
しかし、私は、IMGの左上隅によって回転見つけます画像を中心に回転させる必要があります。 どうすればいいですか? 多くの感謝!
はどうもありがとうございました! – user25749