title: How to use image from resources?
body: <p>I would like to use path to image from program resources instead of using full path from windows.</p>
  
  <pre><code>tlo.Fill = new ImageBrush
  {
    ImageSource = new BitmapImage(new Uri(@"D:\Willie\Documents\ColorTester\ColorTester\Resources\1.jpg", UriKind.Absolute))
  };
  </code></pre>
  
  <p>I want to use path like this:</p>
  
  <pre><code>ImageSource = new BitmapImage(new Uri("ColorTester.Resources.1.jpg"));
  </code></pre>
  
  <p>Can anyone help me with this, because when I try to use it, visual studio throws and exception "System.UriFormatException"?</p>