Load Texture From Image Content In Runtime
- by Austin Brunkhorst
Basically I wrote a world editor for a game I'm working on. Looking ahead, I was brainstorming ways to save the created world including the tile-sets (this game will rely on a tile engine).
I was hoping to save the image data of each tile-set in the same file containing the tile positions, etc. and load the image data into a Texture with XNA.
Is it possible? Something like this is what I'm going for.
Texture2D tileset = Content.LoadFromString<Texture2D>("png tileset data");