getTextureInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) (Add 2.08 return value) |
||
Line 6: | Line 6: | ||
|gr1= System | |gr1= System | ||
|descr= | |descr= Return texture information - resolution in pixels and average colour. Multiply the pixel values by [[pixelW]] and [[pixelH]] to get screen coordinates. | ||
|s1= [[getTextureInfo]] texture | |s1= [[getTextureInfo]] texture | ||
|p1= texture: [[String]] - | |p1= texture: [[String]] - texture path (.paa, .jpg, .ogv) | ||
|r1= [[Array]] | |r1= [[Array]] in format [width, height, {{GVI|arma3|2.08|size= 0.75}} rgbaAverageColour] | ||
|x1= <code>[[getTextureInfo]] "a3\characters_f\blufor\data\clothing1_co.paa"; {{cc|[2048,2048]}}</code> | |x1= <code>[[getTextureInfo]] "a3\characters_f\blufor\data\clothing1_co.paa"; {{cc|[2048, 2048, [0.458824, 0.427451, 0.34902, 1]]}}</code> | ||
|seealso= [[pixelW]] [[pixelH]] [[getModelInfo]] [[supportInfo]] [[getObjectType]] [[getObjectTextures]] | |seealso= [[pixelW]] [[pixelH]] [[getModelInfo]] [[supportInfo]] [[getObjectType]] [[getObjectTextures]] | ||
}} | }} |
Revision as of 12:59, 25 January 2022
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, 2.08 rgbaAverageColour]
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