title: Get Handle of an Image in memory in C#
body: <p>I have a function that takes in a <code>Handle</code> to an image:</p>
  
  <pre><code>DoSomethingWithImage( int imageHandle)
  {
  }
  </code></pre>
  
  <p>In my main, I have an <code>Image myImage</code>, which resides in memory.
  How can I get a <code>Handle</code> to <code>myImage</code>, so that I can pass in that <code>Handle</code> to <code>DoSomethingWithImage()</code> ?</p>
  
  <pre><code>    main()
      {
      //memorySTream is a byte[]
      Image myImage = Image.FromStream(memoryStream, true);
      DoSomethingWithImage( ??? );
      }
  </code></pre>