I need to enable drag and drop of pictures from Excel into my VB6 form. When you drag an image out of Excel, it has no bitmap in it's data object, just a metafile and enhanced metafile.
I need to extract the bitmap from the metafile so I can save it as a jpeg.
The solutions I've found so far either save it as a metafile with a .bmp extension, or screw up the color depth. The hack I'm using right now is to open it in MS Paint and re-save the file as a bitmap, but I need a way to do this within code (without opening extra windows, etc). If I use PlayEnhMetaFile into any kind of IPicture or StdPicture, it remains as a metafile.
How can I extract/convert the EMF to a Bitmap?