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