MovieSaver Manual
The MovieSaver class is used to save image data to a movie file. Supported movie containers are either AVI ( FILTER_AVI ) or QuickTime ( FILTER_MOVIE ).
A MovieSaver can be created with the usual tools:
A MovieSaver object simply opens a movie file and writes multiple frames into that file:
// open the movie file const IMAGERESULT res = movieSaver-> Open (saveMovieFile, typicalFrame, 25, FILTER_AVI , nullptr , SAVEBIT::NONE );
// store each frame for ( Int32 frame = 0; frame < frameCnt; ++frame) { // get bitmap content // this is a just a custom function GetBitmapOfFrame(bitmap, frame) iferr_return ;
// store bitmap data if (movieSaver-> Write (bitmap) != IMAGERESULT::OK ) return maxon::UnknownError( MAXON_SOURCE_LOCATION ); } movieSaver-> 关闭 ();