I am using some C ++ code that uses a function CreateDIBSection to create a bitmap and returns a handle HBITMAP . What's the best way to get this information in my .NET assembly?
CreateDIBSection
HBITMAP
The static method Image .FromHbitmap (IntPtr hbitmap) might be what you are looking for.
Have you tried concatenating the byte array for your bitmap by loading it into a MemoryStream and then using that stream to create the Bitmap class?