title: How do I load a texture in XNA at runtime?
body: <p>I'm working on an application that uses the XNA framework to do it's 3D rendering. I now want to load a texture from file. I've found two methods so far:</p>
  
  <ol>
  <li><code>Texture2D.FromStream(GraphicsDevice, Stream)</code> The problem with this approach is that it only loads gif, png and jpg and I also need support for tga images.</li>
  <li>Create a <code>ContentManager</code> object. The problem with this approach is that it seems like all the textures need to be statically added to the project, from the documentation: "Before a ContentManager can load an asset, you need to add the asset to your game project". The program in question is a level editor and which textures are needed isn't known in advance.</li>
  </ol>
  
  <p>Is there any other easy way to load the texture, I'm thinking about using some other class to load the image (although I don't know which, I'm not very familiar with C#) and then perhaps use the <code>Texture2D.SetData</code> method?</p>
  
  <p>Is there any other easy way to achieve what I'm trying to achieve?</p>