摘要:
usingSystem.Drawing;publicstaticImageGenerateThumbImage(ImageoriginalImage,intlimitedSize){if(limitedSize 20){thrownewInvalidObjectException("limitedSize");}intheight = originalImage.Height;intwidth = originalImage.Width;if(height limitedSize || width limitedSize){intnewHeight, newWidth;if(hei 阅读全文