Jump to content
  • Advertisement
Sign in to follow this  
paic

Resizing a DirectX texture

This topic is 4863 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

Hi, Let's imagine I have a texture of size 1009². I want to resize it to 1024². Is there any combination of D3DX functions that would allow me to resize it ? I don't know, something like "lockSurface" then "saveSurfaceAs" where I specify the new size, and the function handle the resizing ? Thx for any help.

Share this post


Link to post
Share on other sites
Advertisement
Nothing I know of allows you to do this. You'll need to create another texture of the size you want and either reload the data into this new texture or copy the data from your old texture to the new one using something like StretchRect or D3DXLoadSurfaceFromSurface.

neneboricua

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!