TIEMultiBitmap.InsertImage
Declaration
// General Insert (blank image) overload;
procedure InsertImage(Idx: integer);
// General Insert (blank image of specific size and color depth)
procedure InsertImage(Idx: integer; Width, Height: integer; PixelFormat: TIEPixelFormat = ie24RGB); overload;
// Insert from TIEBitmap source
procedure InsertImage(Idx: integer; Bitmap: TIEBitmap); overload;
procedure InsertImage(Idx: integer; Bitmap: TIEBitmap; Rect: TRect); overload;
// Insert from TBitmap source
procedure InsertImage(Idx: integer; Bitmap: TBitmap); overload;
// Insert from TIEMultiBitmap source
procedure InsertImage(Idx : integer; MBitmap : TIECustomMultiBitmap); overload;
// Load image from file overload
procedure InsertImage(Idx: integer; const FileName: string); overload;
// Load frame from video overload
procedure InsertImage(Idx: integer; const FileName: string; FrameIndex: Integer); overload;
// Stream loading overload
procedure InsertImage(Idx: integer; Stream: TStream; FileFormat: TIOFileType = ioUnknown); overload;
// Buffer overload
function InsertImage(Idx: integer; Buffer: pointer; BufferSize: integer; FileType: TIOFileType = ioUnknown; IsResource: Boolean = False): Boolean; overload;
// TGraphic overload
procedure InsertImage(Idx: integer; aGraphic: TGraphic); overload;
Description
Inserts a new image at position,
idx (0 is the first).
Note: In
IsVirtual mode, InsertImage() will increment
VirtualCountImageEnView1.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', i );
// Insert an image from a stream (letting ImageEn automatically detect the format)
MBitmap.InsertImage( 0, MemStream, ioUnknown );
// Insert a TGraphic (from a TImage) to a TImageEnMView
ImageEnMView1.IEMBitmap.InsertImage( 0, Image1.Picture.Graphic );
ImageEnMView1.Update();
See Also
◼AppendImage◼FillFromList◼FillFromDirectory