如何使用asp.net c#
获取图像的dpi答案 0 :(得分:23)
Image.HorizontalResolution
和Image.VerticalResolution
怎么样?像这样:
System.Drawing.Image image = System.Drawing.Image.FromFile("TestImage.bmp");
var dpiX = image.HorizontalResolution;
var dpiY = image.VerticalResolution;
答案 1 :(得分:0)