getTextureInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 16: | Line 16: | ||
|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]}}</code> | ||
|seealso= [[pixelW]] [[pixelH]] [[getModelInfo]] [[supportInfo]] [[getObjectType]] | |seealso= [[pixelW]] [[pixelH]] [[getModelInfo]] [[supportInfo]] [[getObjectType]] [[getObjectTextures]] | ||
}} | }} |
Revision as of 16:25, 20 January 2022
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
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