getTextureInfo
Jump to navigation
Jump to search
Description
- Description:
- Return texture information - resolution in pixels and average colour. Multiply the pixel values by pixelW and pixelH to get screen coordinates.
- Groups:
- System
Syntax
- Syntax:
- getTextureInfo texture
- Parameters:
- texture: String - texture path (.paa, .jpg, .ogv)
- Return Value:
- Array in format [width, height, rgbaAverageColour] where:
Examples
- Example 1:
- getTextureInfo "a3\characters_f\blufor\data\clothing1_co.paa"; // [2048, 2048, [0.458824, 0.427451, 0.34902, 1]]
Additional Information
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