Reputation:
I'm using gdi32 Bitmap... Need some Win32 solution to serialize gdi32 Bitmap into stream, then pass its buffer to upper level C# code, and to be able to make deserialization...
I know how to do that in MFC, but need Windows 32..
the reason is -
Being not so strong with linking Managed C# code to Unmanaged MFC Dll, I need help and sample of how to bind that kind of link.
Thanks for ya help
Upvotes: 0
Views: 268
Reputation: 613382
By far the simplest way to do this is to pass your HBITMAP
to the C# code and use Image.FromHbitmap
.
Upvotes: 1