I'm trying to retrive resolution info from a jpg file. I was able to obtain width and height info but could not find code to access resolution (dpi) info.

' size info
Dim img = Image.FromFile(path)
MsgBox(img.Size.Width)
MsgBox(img.Size.Height)

Do you know the code to change the resolution and size? Shrinking a file from 300dpi to 72dpi.