tmp_image << " y=\"" << r << "\"\n x=\"" << l <<"\"\n ";
to this
tmp_image << " y=\"" << t << "\"\n x=\"" << l <<"\"\n ";
In the attached example the original EMF contained bitmaps exactly where the grey/blue/red rectangles
are now. Not posting that EMF as those bitmaps were very high resolution so the EMF is huge.
Still hunting around for code to actually pull the bitmaps out of the emf from within the EnumEnhMetaFile loop.
To fix the positioning problem change this line
tmp_image << " y=\"" << r << "\"\n x=\"" << l <<"\"\n ";
to this
tmp_image << " y=\"" << t << "\"\n x=\"" << l <<"\"\n ";
In the attached example the original EMF contained bitmaps exactly where the grey/blue/red rectangles
are now. Not posting that EMF as those bitmaps were very high resolution so the EMF is huge.
Still hunting around for code to actually pull the bitmaps out of the emf from within the EnumEnhMetaFile loop.