ImageEn, unit iexBitmaps

TIEMultiBitmap.LoadSnapshot

TIEMultiBitmap.LoadSnapshot


Declaration


function LoadSnapshot(Stream: TStream): Boolean; overload;
function LoadSnapshot(const FileName: WideString): Boolean; overload;


Description


Loads the saved object status (including images) from the specified stream or file.

Use in combination with SaveSnapshot.


Example


// Save
MBMP := TIEMultiBitmap.create;
MBMP.AppendImage( 'D:\dicom.png' );
MBMP.AppendImage( 'D:\face.jpg' );
ShowMessage( IntToStr( MBMP.Count )); // Returns 2
MBMP.SaveSnapShot( 'D:\SnapShot.snp' );
FreeAndNil( MBMP );

// Load
MBMP := TIEMultiBitmap.create;
MBMP.LoadSnapShot( 'D:\SnapShot.snp' );
ShowMessage( IntToStr( MBMP.Count )); // Returns 2
FreeAndNil( MBMP );