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.

Note: 32 and 64bit versions of your application cannot use Snapshot files interchangeably.


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