I'm new to XNA just in case. What I'm trying to do is load the texture at a different size from its original, or at least be able to resize it afterwards. I see in some places that I can use:
Texture2D.FromStream(GraphicsDevice graphicsDevice, Stream stream, int width, int height, bool zoom)
But I also read that loading textures in this way ignores the ContentManager and that I make it harder to work with the garbage collector.
What is the correct way to upload an image of any size using the ContentManager? If this is not possible, can I resize it proportionally, for example, using scaling?
Context: I create a board nx n. When n is too large, I need to automatically get smaller sizes.
c # xna
mjsr
source share