How to resize and save a Texture2D in XNA?

前端 未结 4 1444
不知归路
不知归路 2020-12-17 03:23

In a level editor I\'ve made for my XNA game (editor is also in XNA) I\'m allowing to scale Texture2D objects.

When the user tries to save the level, I\'d like to ac

4条回答
  •  Happy的楠姐
    2020-12-17 04:19

    I have code like this that makes a larger/smaller copy of a texture but I get errors after a while. After 30 resizes then I get the exception, not the first time.

    Seems to be a rendertarget problem but I am not sure. Wonder if you will get these exceptions too if you run this code a lot too?

提交回复
热议问题