how can i get dpi of an image using asp.net c#
How about Image.HorizontalResolution
and Image.VerticalResolution
? Like this:
System.Drawing.Image image = System.Drawing.Image.FromFile("TestImage.bmp");
var dpiX = image.HorizontalResolution;
var dpiY = image.VerticalResolution;