首页 > 代码库 > 图片旋转

图片旋转

byte[] imageCONTENT = File.ReadAllBytes(imagePath);System.IO.MemoryStream byteMS = new System.IO.MemoryStream(imageCONTENT);System.Drawing.Image img = System.Drawing.Image.FromStream(byteMS);img.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);string sFileEXT = System.IO.Path.GetExtension(imageName);string sFileMimeType = Utils.GetFileContentType(sFileEXT);byte[] result = APSqlProcs.TiffToByteArray(img, sFileMimeType);