{"name":"getTextureInfo","title":"getTextureInfo","type":"command","url":"https://community.bistudio.com/wiki/getTextureInfo","revid":378510,"updated":"2026-05-03T17:13:34Z","groups":["System"],"status":"ok","games":{"arma3":"2.06"},"since":"arma3 2.06","arma3_since":"2.06","description":"Return texture information - resolution in pixels (mipmap level 0) and average colour. Multiply the pixel values by pixelW and pixelH to get screen coordinates.","syntaxes":[{"syntax":"getTextureInfo texture","params":[{"name":"texture","type":"String","description":"texture path (.paa, .jpg, .ogv)","type_expr":"String"}],"returns":{"type":"Array","type_expr":"Array","description":"with [width, height, rgbaAverageColour]\n- width: Number - height: Number - Arma 3 v2.08 rgbaAverageColour: Color (RGBA)","text":"Array with [width, height, rgbaAverageColour]\n\n- width: Number\n- height: Number\n- Arma 3 v2.08 rgbaAverageColour: Color (RGBA)"},"form":"unary","right":{"text":"texture"}},{"syntax":"getTextureInfo [texture, sizeH]","since":"arma3 2.22","params":[{"name":"texture","type":"String","description":"texture path (.paa, .jpg, .ogv)","type_expr":"String"},{"name":"sizeH","type":"Number","description":"texture height in screen size","type_expr":"Number"}],"returns":{"type":"Array","type_expr":"Array","description":"with [width, height]\n- width: Number - width of the texture in screen units - height: Number - height of the texture in screen units","text":"Array with [width, height]\n\n- width: Number - width of the texture in screen units\n- height: Number - height of the texture in screen units"},"form":"unary","right":{"text":"[texture, sizeH]"}}],"examples":[{"code":["getTextureInfo \"a3\\characters_f\\blufor\\data\\clothing1_co.paa\"; // [2048, 2048, [0.458824, 0.427451, 0.34902, 1]]"]},{"code":["getTextureInfo [\"\\A3\\UI_f\\Data\\Logos\\arma3_shadow_ca.paa\", 0.1]; // [0.150111, 0.1]"]}],"see_also":["pixelW","pixelH","getModelInfo","supportInfo","getObjectType","getObjectTextures"]}