title: Why can't my GetManifestResourceStream find my image?
body: <p>I'm currently attempting to layer several images into a single composite, built from several body face pieces for a player's portrait.</p>
  
  <p>Usually for grabbing images from the resources and putting them into a picturebox/etc I'd simply ".Image = My.Resources.ResourceManager.GetObject(filename)".</p>
  
  <p>However I need to transfer to a Bitmap, which doesn't accept objects. I've found the below code from a couple of google results, but the file is bugging out as "Value of null is not valid for 'stream' ", and the pHead is "Nothing". As such I'm presuming the code can't find the file.</p>
  
  <p>The break is causing on the final line of the below code.</p>
  
  <p>Any help or simpler alternatives would be much welcome.</p>
  
  <pre><code> Dim GenderText As String = ""
   Select Case ListCharacter(ActiveChar).Gender
       Case eGender.Male : GenderText = "masc"
       Case eGender.Female : GenderText = "fem"
   End Select
  
   Dim Prefix As String = ""
   Dim Suffix As String = ".png"
   Dim myAsm As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
  
  ' Load Head Image
  ' e.g. prt_fem_head_1_white.png
   Dim headImageName As String = "prt_" &amp; GenderText &amp; "_head_" &amp; CharApp.HeadStyle &amp; "_" &amp; CharApp.SkinColour
   Dim pHead As Bitmap = New Bitmap(myAsm.GetManifestResourceStream(Me.GetType, headImageName &amp; Suffix))
  </code></pre>
  
  <p><img src="https://i.imgur.com/ZkVWjmg.png" alt="Screenshot"></p>
  
  <p>ps. Also bugs out with/without the suffix.</p>
  
  <p>Edit #1;</p>
  
  <p>I've found the prefix required, as far as I can tell, to the whereabouts of the resources root. However, that still isn't working to any variation.
  <img src="https://i.imgur.com/2FXREgJ.png" alt="Screenshot2"></p>
  
  <p>Edit #2;</p>
  
  <p>I've double checked the resource location via its properties.</p>
  
  <p>"C:\Users\CLEO\Documents\Visual Studio 2015\Projects\Storytime\Storytime\Resources\prt_fem_head_1_white.png"</p>