title: How to add PNG resource in Visual Studio 2010?
body: <p>I have a PNG (i.e. a compressed image) that I'd like to include in my assembly (i.e. application). </p>
  
  <p>How to do it?</p>
  
  <p>Additional information:</p>
  
  <p>I tried adding a PNG resource to my assembly in Visual Studio 2010:</p>
  
  <p><img src="https://i.stack.imgur.com/HH0bH.png" alt="enter image description here"></p>
  
  <p>But that didn't work, as Visual Studio converts it to an uncompressed bitmap:</p>
  
  <p><a href="https://i.stack.imgur.com/Tqnvc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Tqnvc.png" alt="enter image description here"></a></p>
  
  <p>Except I want to add a PNG. </p>
  
  <p>Otherwise <a href="https://stackoverflow.com/a/9314225/12597">my 1MB application becomes 8MB</a>:</p>
  
  <pre><code>]=== 1MB file size ==&gt;
  ]=== 8MB file size ==============================================================================================================================================&gt;
  </code></pre>