CODViewport::WriteMetafile
BOOLCODViewport::WriteMetafile(CFile&outFile, LPCTSTRlpszDescription)
Writes contents of viewport to an enhanced metafile.
Defined in: OdViewport.cpp
Return Value
TRUE if metafile successfully written, otherwise FALSE.
Parameters
outFile
File to write metafile to.
lpszDescription
String description to add to the metafile header.
Comments
This function creates an enhanced metafile device context and calls DrawMetafile to populate it. Then it uses the Windows GDI function GetEnhMetaFileBits() to get a binary stream to write to the given output file.NOTE: The file object passed in must already be open for write access before calling this function.