Hi,
I'm using VB within ESRI ArcGIS which is a little limited in its functionality. I need a way of obtaining the dimensions of a TIFF without loading it into a picture box. Perhaps read as raw data or through a control I'm not sure. I've found ways to do BMPs, JPEGs and GIFs as follows...
Dim myPicture As IPictureDisp
Set myPicture = LoadPicture(TextBox1 & TextBox11)
i_width = MulDiv(myPicture.Width, 1440, 2540) / 15
i_height = MulDiv(myPicture.Height, 1440, 2540) / 15
Set myPicture = Nothing
but this method does not work for TIFFS as it says it's an invalid picture type. Can someone help me out?
Thanks,
Mike
I'm using VB within ESRI ArcGIS which is a little limited in its functionality. I need a way of obtaining the dimensions of a TIFF without loading it into a picture box. Perhaps read as raw data or through a control I'm not sure. I've found ways to do BMPs, JPEGs and GIFs as follows...
Dim myPicture As IPictureDisp
Set myPicture = LoadPicture(TextBox1 & TextBox11)
i_width = MulDiv(myPicture.Width, 1440, 2540) / 15
i_height = MulDiv(myPicture.Height, 1440, 2540) / 15
Set myPicture = Nothing
but this method does not work for TIFFS as it says it's an invalid picture type. Can someone help me out?
Thanks,
Mike