码迷,mamicode.com
首页 > 其他好文 > 详细

图片旋转

时间:2014-08-21 18:43:14      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   ar   div   log   new   

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);

 


 

图片旋转,布布扣,bubuko.com

图片旋转

标签:style   blog   color   io   ar   div   log   new   

原文地址:http://www.cnblogs.com/kangjing/p/3927545.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!