How can I get the width and height of a texture in pixels?

Hey wmbuRn,

If you have your texture referenced in a Texture2D variable, you can call the functions Get Size X and Get Size Y to get the size, in pixels, in the X-Y directions.

Hope that helps out!

-Steve

2 Likes