Tag: 剪裁

在C#中旋转图像时如何防止剪裁?

我刚刚经历了一些试图找出如何使图像均匀旋转的东西。 这有效,但现在它正在削减,我不确定如何让它停止…我正在使用这个rotateImage方法: public static Image RotateImage(Image img, float rotationAngle) { //create an empty Bitmap image Bitmap bmp = new Bitmap(img.Width, img.Height); //turn the Bitmap into a Graphics object Graphics gfx = Graphics.FromImage(bmp); //now we set the rotation point to the center of our image gfx.TranslateTransform((float)bmp.Width / 2, (float)bmp.Height / 2); //now rotate the image gfx.RotateTransform(rotationAngle); […]