Why might Graphics.RotateTransform() not be applied?
问题 I have the following function: static private Image CropRotate(Image wholeImage, Rectangle cropArea) { Bitmap cropped = new Bitmap(cropArea.Width, cropArea.Height); using(Graphics g = Graphics.FromImage(cropped)) { g.DrawImage(wholeImage, new Rectangle(0, 0, cropArea.Width, cropArea.Height), cropArea, GraphicsUnit.Pixel); g.RotateTransform(180f); } return cropped as Image; } It's supposed to crop an image, then rotate the resulting sub-image. In actuality though, it only performs the crop.