title: Create Direct2D1 bitmap and draw it to Direct2D1 RenderTarget
body: <p>I want to do the following without using WIC:</p>
  
  <ol>
  <li><p>Create a Direct2D1 Bitmap and draw something into it.</p>
  
  <pre><code>BitmapProperties props = new BitmapProperties(new SharpDX.Direct2D1.PixelFormat(Format.B8G8R8A8_UNorm, AlphaMode.Premultiplied));
  var renderT = new SharpDX.Direct2D1.BitmapRenderTarget(m_d2dRenderTargetImage, CompatibleRenderTargetOptions.None, new SharpDX.Direct2D1.PixelFormat(Format.B8G8R8A8_UNorm, AlphaMode.Premultiplied));
  
  renderT.BeginDraw();
  renderT.Clear(SharpDX.Color.Yellow);
  renderT.EndDraw();
  </code></pre></li>
  <li><p>Save this Bitmap to a variable.</p>
  
  <pre><code>RastImage = new SharpDX.Direct2D1.Bitmap(renderT, new Size2(targetWidth, targetHeight), props);
  </code></pre></li>
  <li><p>Draw this Bitmap into a Direct2D RenderTarget.</p>
  
  <pre><code>m_d2dRenderTarget = new RenderTarget(m_d2dFactory, surface, rtp);
  </code></pre></li>
  </ol>
  
  <p>But this does not do anything. Could someone tell me what I'm doing wrong? Does it even work without WIC? Any help is welcome. I have searched a lot but never really found an example without WIC.</p>