getTextureInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ")
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.06
|version1= 2.06
|branch= dev


|gr1= System
|gr1= System

Revision as of 19:28, 5 October 2021

Hover & click on the images for description

Description

Description:
Currently, returns width and height of the given texture (.paa, .jpg, .ogv) in pixels. Multiply the values by pixelW and pixelH to get screen coordinates.
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:
pixelW pixelH 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