开发者

Stretch a texture in XNA 4.0?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜