getTextureInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix) |
m (formatting) |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|branch= dev | |||
|gr1= System | |gr1= System | ||
|descr= Currently, returns width and height of the given texture. | |descr= Currently, returns width and height of the given texture. | ||
Line 12: | Line 13: | ||
|s1= [[getTextureInfo]] texture | |s1= [[getTextureInfo]] texture | ||
|p1= texture: [[String]] - | |p1= texture: [[String]] - Path to texture (.paa or .jpg) | ||
|r1= [[Array]] - In format [width, height] | |||
| | |x1= <code>[[getTextureInfo]] "a3\characters_f\blufor\data\clothing1_co.paa"; {{cc|[2048,2048]}}</code> | ||
|seealso= [[getModelInfo]], [[supportInfo]], [[getObjectType]], [[getObjectTextures]] | |seealso= [[getModelInfo]], [[supportInfo]], [[getObjectType]], [[getObjectTextures]] | ||
}} | }} |
Revision as of 00:46, 13 June 2021
Description
- Description:
- Currently, returns width and height of the given texture.
- Groups:
- System
Syntax
- Syntax:
- getTextureInfo texture
- Parameters:
- texture: String - Path to texture (.paa or .jpg)
- Return Value:
- Array - In format [width, height]
Examples
- Example 1:
getTextureInfo "a3\characters_f\blufor\data\clothing1_co.paa"; // [2048,2048]
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