ImageEn, unit iexBitmaps

TIEMultiBitmap.InsertImage

TIEMultiBitmap.InsertImage


Declaration

procedure InsertImage(idx: integer);
procedure InsertImage(Idx : integer; Bitmap : TIEBitmap);
procedure InsertImage(Idx : integer; Bitmap : TBitmap);
procedure InsertImage(Idx : integer; MBitmap : TIECustomMultiBitmap);
procedure InsertImage(Idx : integer; Width, Height : integer; PixelFormat : TIEPixelFormat = ie24RGB);
procedure InsertImage(Idx : integer; const FileName : string);
procedure InsertImage(Idx : integer; Stream : TStream; FileFormat: TIOFileType = ioUnknown);


Description

Inserts a new image at position, idx (0 is the first).


Examples

ImageEnView1.IO.LoadFromFile('C:\000.tif');
MBitmap.InsertImage(0);
MBitmap.SetImage(0, ImageEnView1.IEBitmap);

// Which is the same as...
MBitmap.InsertImage(0, 'C:\000.tif');

// Insert 256 x 256 bitmap
MBitmap.InsertImage(0, 256, 256, ie24RGB);

// Insert a file from the web
MBitmap.InsertImage(0, 'http://www.imageen.com/graphics/imageen.gif');

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

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



See Also

- AppendImage
- FillFromList
- FillFromDirectory