chaotic42

VBA: Need help finding the resolution (DPI/cellsize) of an arbitrary raster

Discussion created by chaotic42 on Jan 3, 2012
Latest reply on Jan 4, 2012 by Hornbydd
Hi all.

I'm looking for a way to read the DPI of a raster in ArcObjects. I have the layer loaded up in ArcObjects as an IRasterLayer. Using this, I can find the width and height of the image, the "DisplayResolutionFactor", and other great information, but not the actual DPI of the image.

Is there an easy way to get this information? Everything I find online seems to deal with exporting, but I just want to know if the image is 300dpi, 1200dpi, 2400dpi, etc. Any thoughts?

Outcomes