getTextureInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
No edit summary
Line 8: Line 8:
|gr1= System
|gr1= System


|descr= Currently, returns width and height of the given texture.
|descr= Currently, returns width and height of the given texture (.paa, .jpg, .ogv).


|s1= [[getTextureInfo]] texture
|s1= [[getTextureInfo]] texture


|p1= texture: [[String]] - Path to texture (.paa or .jpg)
|p1= texture: [[String]] - Path to texture  


|r1= [[Array]] - In format [width, height]
|r1= [[Array]] - In format [width, height]

Revision as of 11:02, 18 June 2021

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.06.

Description

Description:
Currently, returns width and height of the given texture (.paa, .jpg, .ogv).
Groups:
System

Syntax

Syntax:
getTextureInfo texture
Parameters:
texture: String - Path to texture
Return Value:
Array - In format [width, height]

Examples

Example 1:
getTextureInfo "a3\characters_f\blufor\data\clothing1_co.paa"; // [2048,2048]

Additional Information

See also:
getModelInfosupportInfogetObjectTypegetObjectTextures

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note