Export a page to an image using the page's export settings
bool export_page( Page & pg, LPCSTR lpcszFileName, LPCSTR lpcszFormat = "EPS" )
Returns 0 for success, non-zero for error.
EX1
void export_page_ex1() { GraphPage gp; gp.Create(); if( !gp) { return; } string strExt("bmp"); string strImagePath; strImagePath = GetAppPath(1) + "Test." + strExt; bool bRet = export_page(gp,strImagePath,strExt); }
origin.h