I'm trying to do a RPG Editor in XNA, the thing is that I need to load the textures from a path written in a XMAL file.
I've done some research, but most of the solutions are changing the content pipeline or simply creating your own.
Try this:
FileStream filestream = new FileStream("mytexture.jpg");
Texture2D myTexture = Texture2D.FromStream(graphicsDevice, filestream);
Texture2D.FromStream
Disclaimer: I haven't tested this code (don't have xna installed on this computer).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With