MatrixLayer::ExportMultiFrame

 

Description

Export all matrix objects to a multi frame image.

Syntax

int ExportMultiFrame( LPCSTR pcszFileName, LPCSTR pcszType, LPVOID pOptions = NULL )

Parameters

pcszFileName
[input] pointer to the name of the destination file
pcszType
[input] pointer to the file type, "gif" or "tif"
pOptions
[input] optional pointer to struct of options, OGifOptions_t

Return

0 on success,-1 on failure.

Examples

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);
}

Remark

See Also

header to Included

origin.h