I haven't marshalled anything yet except for whatever IJW does in managed C++. I'm just trying to figure out how to use System.Drawing.Bitmap to load JPG/GIF/PNG files and then copy the resulting bitmap data (colors, data, etc) into a custom, unmanaged structure which essentially mimics a windows bitmap structure. We are trying to replace LeadTools libraries with the .NET image support.
I haven't found any examples showing how you can take the HBITMAP from Bitmap.GetHbitmap() and retrieve a pointer to BITMAP structure. |