GetTIFFDimensions()

Summary

Gets the number of rows and columns in a TIFF image.

Syntax

dims = GetTIFFDimensions(string filename)

Argument Contents
filename The name of the TIFF file

Returns

An options array with the dimensions of the TIFF image:

Element Type Contents
Rows Integer Number of rows
Cols Integer Number of columns

Notes

  • The dimensions can be accessed as dims.Rows and dims.Cols.

Example

folder = RunMacro("G30 Tutorial Folder")
dims = GetTIFFDimensions(folder + "hartford.tif")
ShowMessage("The TIFF image has " + String(dims.Rows) + " rows and " +
String(dims.Cols) + " columns")

See Also

Function Summary
AddImageLayer() Adds an image layer to a map
GetImageFileInfo() Gets information about a raster image file