How to bring “System.Drawing.Image” to DIB
问题 I have created a consumable COM Class Library. The class library gets the image of a camera. It's of type Image / Bitmap. I consume the class library in VB6, and I need to show this image in VB6. How could I convert this System.Drawing.Image to something that VB6 can display? Can I use a DIB (using CreateDIBSection, etc.)? If yes, how exactely can a System.Drawing.Image be converted to a DIB? Thank you! 回答1: Here's what I've done in the past. First, a couple prerequisites: you get a Byte()