ExtractImageToFile
It extracts into a file an enhanced metafile or device independent bitmap depending on the type of GraphObj. (which could have been generated, e.g,, by pasting a picture)
BOOL ExtractImageToFile( LPCSTR lpcszPathName )
TRUE for success
EX1
void GraphObjectBase_ExtractImageToFile_ex1() { GraphLayer lay = Project.ActiveLayer(); GraphObject grEMF; grEMF = lay.GraphObjects("EMF"); BOOL bRet = grEMF.ExtractImageToFile("c:\\myfiles\\myemf.emf"); }
origin.h