ImageEn, unit iexBitmaps

TIEMultiBitmap.AppendImage

TIEMultiBitmap.AppendImage


Declaration

function AppendImage: Integer;
function AppendImage(Bitmap: TIEBitmap): integer;
function AppendImage(Bitmap : TBitmap): integer;
function AppendImage(MBitmap : TIECustomMultiBitmap);
function AppendImage(Width, Height: Integer; PixelFormat: TIEPixelFormat = ie24RGB): Integer;
function AppendImage(const FileName: String): integer;
function AppendImage(Stream: TStream; FileFormat: TIOFileType = ioUnknown): integer;


Description

Appends a new image at last position in the list and returns the new image position.


Examples

ImageEnView1.IO.LoadFromFile( 'C:\MyImage.tif' );
idx := MBitmap.AppendImage;
MBitmap.SetImage( idx, ImageEnView1.IEBitmap );

// Which is the same as...
MBitmap.AppendImage( 'C:\MyImage.tif' );

// Load the fifth image of MyImage.tif
MBitmap.AppendImage( 'C:\MyImage.tif' + IEM_Path_Index_Delimiter + 4 );

// Append 256 x 256 bitmap
MBitmap.AppendImage( 256, 256, ie24RGB );

// Append a file from the web
MBitmap.AppendImage( 'http://www.imageen.com/graphics/imageen.gif' );

// Show ten frames of a video file
for I := 0 to 9 do
  MBitmap.AppendImage( 'D:\Temp\Cement.avi' + IEM_Path_Index_Delimiter + IntToStr( I * 10 ));

// Append all pages of a TIFF to the current content
iPageCount := EnumTIFFIm( sFileName );
for I := 0 to iPageCount - 1 do
  MBitmap.AppendImage( sFileName + IEM_Path_Index_Delimiter + IntToStr( I ));

// Append an image from a stream (letting ImageEn automatically detect the format)
MBitmap.AppendImage( MemStream, ioUnknown );


See Also

- InsertImage
- FillFromList
- FillFromDirectory