Export all matrix objects to a multi frame image.
int ExportMultiFrame( LPCSTR pcszFileName, LPCSTR pcszType, LPVOID pOptions = NULL )
0 on success,-1 on failure.
EX1
void ExportMultiFrame_ex() { MatrixLayer ml = Project.ActiveLayer(); if(!ml) return; string strFile = GetAppPath() + "myml.gif"; OGifOptions_t optGIF; optGIF.nLoopCount = 3;// 0 (default) = infinite optGIF.nFrameDelay = 50;// 100 (default) = 1 sec int nRet = ml.ExportMultiFrame(strFile, "gif", &optGIF); if(0 == nRet) out_str(strFile); }
origin.h