I was under the impression that classic Win16 metafiles had no embedded size or resolution information (unless there is a METAFILEPICT
header or similar) - what does GetWinMetaFileBits()
use the reference DC for?
Asked
Active
Viewed 335 times
1 Answers
5
It's well documented in the SDK article:
This function converts an enhanced metafile into a Windows-format metafile so that its picture can be displayed in an application that recognizes the older format.
The system uses the reference device context to determine the resolution of the converted metafile.
and
A Windows-format metafile does not contain a comprehensive header that describes the original picture dimensions, the resolution of the device on which the picture was created, an optional text description, or an optional palette.

Hans Passant
- 922,412
- 146
- 1,693
- 2,536
-
Does this mean that the coordinates of the operations stored in the resulting metafile are scaled by the ratio of the resolution in the EMF and the resolution of the reference device? – bdonlan May 18 '11 at 12:18