title: Create BitmapImage and apply to it a specific Color
body: <p>I got stuck how to create  <code>BitmapImage</code>   based on some <strong>color value</strong>?</p>
  
  <p>For example I have string "<em>Black</em>" so I need black <strong>BitmapImage</strong>.</p>
  
  <p>How it could be done?</p>
  
  <p>Thank you!  </p>
  
  <p>-- UPDATES (I put this code for <strong>@StephenChung</strong>)</p>
  
  <p>The idea is to do Grid with any opacity and don't apply opacity to its children.
  So I create an image by ANY color I need and apply opacity for it.</p>
  
  <pre><code>BitmapSource bs = CreateBitmapSource(GetBackgroundColorValue());
  // and here I use method of @StaWho CreateBitmapSource()
  ImageBrush ib2 = new ImageBrush(bs);
  ib2.Opacity = Opacity;
  ib2.Stretch = Stretch.Fill;
  RootGrid.Background = ib2;
  </code></pre>