开发者

Stretch a texture in XNA 4.0?

开发者 https://www.devze.com 2023-03-13 21:55 出处:网络
I can\'t figure anyway to do this, I don\'t want t开发者_运维问答o scale it with .Draw, I want to just change the width.The best way is using .Draw particularly if you are scaling a lot, especially as

I can't figure anyway to do this, I don't want t开发者_运维问答o scale it with .Draw, I want to just change the width.


The best way is using .Draw particularly if you are scaling a lot, especially as your object should handle its own drawing capabilities.

You can render the texture using a render target at the size you want, and then saving the render target texture.

Searching for a quick code example came up with the following which is saying the same thing:

How to resize and save a Texture2D in XNA?

0

精彩评论

暂无评论...
验证码 换一张
取 消