摘要: private byte[] GetThumbnailFromImage(Stream imgStream, int size, string format) { System.Drawing.Image image = System.Drawing.Image.FromStream(imgStream); int newWidth, newHeight; if (image.Width >= image.Height) { newWidth = size; newHeight = size * image.Height / image.Width; } else { newHeight 阅读全文
posted @ 2011-08-02 13:57 Antony Yang 阅读(290) 评论(0) 推荐(0) 编辑