0

我有一个要旋转的位图,我想传入要处理的旋转位图,但从我的代码看来,它传递的是原始位图而不是旋转的位图。

知道如何调整它吗?

 using (var fullImg = new Bitmap(workGif))
 {
   try
   {   
     RectangleF cloneRect = new RectangleF(0,0, fullImg.Width,fullImg.Height);
     PixelFormat format = fullImg.PixelFormat;

     Bitmap result = fullImg.Clone(cloneRect, format);
     result.RotateFlip(RotateFlipType.Rotate180FlipNone);

     string QRinfo = Process(result);
     MessageBox.Show(QRinfo);
   }
 }
4

0 回答 0