Archived

This topic is now archived and is closed to further replies.

DX8 Texture size

This topic is 5970 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to get the size (heigth and width, not bytes) of a texture in DirectX 8. I''m using a LPDIRECT3DTEXTURE8 structure and loading it with D3DXCreateTextureFromFile(). Any suggestions? ----------------------------- Vash the Stampede "Love & Peace!"

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Instead of D3DXCreateTextureFromFile()
you should use D3DXCreateTextureFromFileExA().

Take a loook at the 12th parameter. It returns a pointer to an D3DXIMAGE_INFO structure containing width/height and other info.

Share this post


Link to post
Share on other sites
Thank you kind sir! I now encorage everyone to profusly thank mr. "Anonymous Poster" whenever they may happen across him. ^_^

But seriously, thanks!

-----------------------------

Vash the Stampede

"Love & Peace!"

Share this post


Link to post
Share on other sites