Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Bitmap.HorizontalResolution and Bitmap.VerticalResolution properties

$
0
0

I have one question about how windows read some properties of an Image. When i rightclick on an Image and in Properties window if i goto Details tab then it shows that Image has 200 dpi as Horizontal and Vertical Resolution.

But if i use VB.Net code

objBitmap=New Bitmap(Image.FromFile("C:\Image1.jpg"))

intXResolution=objBitmap.HorizontalResolution

intYResolution=objBitmap.VerticalResolution

then value of intXResolution and intYResolution is 96

How i can get correct Image resolution values in VB.Net?


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>