Chris Shearer Cooper
2010-03-09 16:13:23 UTC
There seems to be a limit on the size of an EMF, but I can't find it
documented anywhere.
I did find this article:
http://support.microsoft.com/kb/904563/
that implies there are issues when the EMF is larger than 2G, but I am
seeing a problem with smaller files (about 500M) where I create the
EMF on disk:
hMetaDC = CreateEnhMetaFile(hRefDC,"c:\\temp\\temp.emf",&rect,NULL);
and then when I want to play back the EMF:
HENHMETAFILE hMeta = CloseEnhMetaFile(hMetaDC);
fails (returns zero) but only when the file is of a sufficient length.
Are there documented limits on the size of an EMF?
Thanks,
Chris
documented anywhere.
I did find this article:
http://support.microsoft.com/kb/904563/
that implies there are issues when the EMF is larger than 2G, but I am
seeing a problem with smaller files (about 500M) where I create the
EMF on disk:
hMetaDC = CreateEnhMetaFile(hRefDC,"c:\\temp\\temp.emf",&rect,NULL);
and then when I want to play back the EMF:
HENHMETAFILE hMeta = CloseEnhMetaFile(hMetaDC);
fails (returns zero) but only when the file is of a sufficient length.
Are there documented limits on the size of an EMF?
Thanks,
Chris