我想把一个经过处理的图形绘制到另一个图形中:
输出是具有背景图片的头部图片,但头部图片没有旋转。
我错过了什么?
// I have two graphics:
var gHead = Graphics.FromImage(h);
var gBackground = Graphics.FromImage(b);
// Transform the first one
var matrix = new Matrix();
matrix.Rotate(30);
gHead.Transform = matrix;
// Write the first in the second
gBackground.DrawImage(h, 200, 0, 170, 170);
输出是具有背景图片的头部图片,但头部图片没有旋转。
我错过了什么?
gBackground.Transform = matrix;
- musefan