{"name":"getTextureInfo","operator":null,"title":"getTextureInfo","type":"command","url":"https://community.bistudio.com/wiki/getTextureInfo","revid":378510,"updated":"2026-05-03T17:13:34Z","groups":["System"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.06"}],"since":{"game":"arma3","name":"Arma 3","version":"2.06"},"arma3_since":"2.06","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"texture","type":"String","optional":false,"default":null,"description":"texture path (.paa, .jpg, .ogv)","types":["String"],"since":null,"text":"texture: String - texture path (.paa, .jpg, .ogv)"}],"returns":{"type":"Array with [width, height, rgbaAverageColour]","types":["Array"],"description":"width: Number - height: Number - Arma 3 v2.08 rgbaAverageColour: Color (RGBA)","text":"Array with [width, height, rgbaAverageColour]\n- width: Number\n- height: Number\n- Arma 3 v2.08 rgbaAverageColour: Color (RGBA)"},"form":"unary","operator":null,"left":null,"right":{"text":"texture","types":["String"]}},{"syntax":"getTextureInfo [texture, sizeH]","since":"arma3 2.22","effect":null,"exec":null,"params":[{"name":"texture","type":"String","optional":false,"default":null,"description":"texture path (.paa, .jpg, .ogv)","types":["String"],"since":null,"text":"texture: String - texture path (.paa, .jpg, .ogv)"},{"name":"sizeH","type":"Number","optional":false,"default":null,"description":"texture height in screen size","types":["Number"],"since":null,"text":"sizeH: Number - texture height in screen size"}],"returns":{"type":"Array with [width, height]","types":["Array"],"description":"width: Number - width of the texture in screen units - height: Number - height of the texture in screen units","text":"Array with [width, height]\n- width: Number - width of the texture in screen units\n- height: Number - height of the texture in screen units"},"form":"unary","operator":null,"left":null,"right":{"text":"[texture, sizeH]","types":["Array"]}}],"examples":[{"text":"```sqf\ngetTextureInfo \"a3\\characters_f\\blufor\\data\\clothing1_co.paa\"; // [2048, 2048, [0.458824, 0.427451, 0.34902, 1]]\n```","code":["getTextureInfo \"a3\\characters_f\\blufor\\data\\clothing1_co.paa\"; // [2048, 2048, [0.458824, 0.427451, 0.34902, 1]]"]},{"text":"```sqf\ngetTextureInfo [\"\\A3\\UI_f\\Data\\Logos\\arma3_shadow_ca.paa\", 0.1]; // [0.150111, 0.1]\n```","code":["getTextureInfo [\"\\A3\\UI_f\\Data\\Logos\\arma3_shadow_ca.paa\", 0.1]; // [0.150111, 0.1]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["pixelW","pixelH","getModelInfo","supportInfo","getObjectType","getObjectTextures"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: System","Introduced with Arma 3 version 2.06","Scripting Commands"]}