TImageEnMView.InsertImageEx
Declaration
procedure InsertImageEx(Idx: integer; SelectMode: TIEMSelectMode = imsNever); overload;
procedure InsertImageEx(Idx: integer; bSelectIt: Boolean); overload;
function InsertImageEx(Idx: integer; const FileName: string;
LoadOnDemand: boolean;
DefaultTopText: TIEImageEnMViewDefaultText = iedtNone;
DefaultInfoText: TIEImageEnMViewDefaultText = iedtNone;
DefaultBottomText: TIEImageEnMViewDefaultText = iedtFilename;
bSelectIt: Boolean = True; bIsFolder: Boolean = False): Integer; overload;
Description
InsertImageEx inserts a new image in position,
idx (0 is the first).
Unlike
InsertImage, InsertImageEx doesn't create the bitmap. Also, you can configure whether the
image is selected.
ImageEnView1.IO.LoadFromFile('000.tif');
ImageEnMView1.InsertImageEx(0);
ImageEnMView1.SetImage(0, ImageEnView1.IEBitmap);
// Append an image without selecting it
ImageEnMView1.InsertImageEx( ImageEnMView1.ImageCount, imsNever );
See Also
◼InsertImage◼DeleteImage◼AppendImage◼FillFromList◼FillFromDirectory◼FillFromZip