title: How to Convert GDI+'s Image* into Bitmap*
body: <p>I am writting code in c++, gdi+.</p>
  <p>I make use of Image's GetThumbnail() method to get thumbnail.
  However, I need to convert it into HBITMAP.
  I  know the following code can get GetHBITMAP:</p>
  <pre><code>Bitmap* img;
  HBITMAP temp;
  Color color;
  img-&gt;GetHBITMAP(color, &amp;temp); // if img is Bitmap*  this works well。
  </code></pre>
  <p>But how can I convert Image* into Bitmap* fast?
  Many thanks!</p>
  <p>Actually, now I have to use the following method:</p>
  <pre><code>int width = sourceImg-&gt;GetWidth(); // sourceImg is Image*
  int height = sourceImg-&gt;GetHeight();
  Bitmap* result = new Bitmap(width, height,PixelFormat32bppRGB);
  Graphics gr(result);
  //gr.SetInterpolationMode(InterpolationModeHighQuality);
  gr.DrawImage(sourceImg, 0, 0, width, height);
  </code></pre>
  <p>I really don't know why they do not provide Image* - &gt; Bitmap* method. but let GetThumbnail() API return a Image object....</p>