本文共 387 字,大约阅读时间需要 1 分钟。
public Bitmap GetImage(Bitmap bmp, float py){ Bitmap bitmap; if(py==90 || py==270) { bitmap= new Bitmap(bmp.Height, bmp.Width); } else { bitmap= new Bitmap(bmp.Width, bmp.Height); } Graphics g = Graphics.FromImage(bitmap); g.TranslateTransform(bmp.Height, 0); g.RotateTransform(py); g.DrawImage(bmp, new Point(0, 0)); return bitmap;}
转载地址:http://ruulf.baihongyu.com/