How to load transparent PNG using Texture2D.FromStream
<p>I wanted to ask how can I load Texture2D image from file (i don't want to use XNA's Content Pipeline) while preserving transparency of my image, because I want skinning in my game.</p>

<p>Code I have:</p>

<p>Initialising Texture using <code>_cursor.Texture = _helper.LoadPicture("skin\\cursor.png");</code></p>

<p>Drawing Texture using <code>spriteBatch.Draw(Texture, rectangle, Color.BlanchedAlmond);</code></p>

<pre><code>public Texture2D LoadPicture(string filename) {
    FileStream setStream = File.Open(filename, FileMode.Open);
    StreamReader reader = new StreamReader(setStream);
    Texture2D NewTexture = Texture2D.FromStream(_graphicsDevice, setStream);
    setStream.Dispose();
    return NewTexture;
 }
</code></pre>

<p>Screenshot 1 (Result): <a href="http://prntscr.com/cxjzwu" rel="nofollow">http://prntscr.com/cxjzwu</a></p>

<p>Screenshot 2 (Expected): <a href="http://prntscr.com/cxk065" rel="nofollow">http://prntscr.com/cxk065</a></p>