imageInfo function
Syntax
float imageInfo(filePath, attribute)
Parameters
- filePath (string)
Path to texture. See Asset Search for information about search locations. - attribute (selector)
Specified texture dimension.sx width sy height
Returns
Return the image resolution.
Description
This function returns the image resolution of the texture defined in the filePath, depending on the specified attribute selector.
Examples
imageInfo(myTexture.jpg, sy) # result = 1024 (height of the texture in pixels) imageInfo(myTexture.jpg, sx) # result = 512(width of the texture in pixels)
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.