摘要:
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 阅读全文