【问题】
C#中,需要获得图片大小
【解决过程】
参考:
how to get the image dimensions from the file name
写出对应代码:
using System.Drawing; //C:/Users/CLi/AppData/Local/Temp/WindowsLiveWriter2049324412/supfiles62D643/from location to birdname both show_thumb.png Image img = Image.FromFile(srcFullname); int srcFileWidth = img.Width; int srcFileHeight = img.Height;
转载请注明:在路上 » 【已解决】C#获得图片大小