ImageEn, unit iexBitmaps

TIEMultiBitmap.IndexOf

TIEMultiBitmap.IndexOf


Declaration

function IndexOf(const Hash: AnsiString): Integer; overload;
function IndexOf(Bitmap: TIEBitmap): Integer; overload;


Description

Returns the index of an image within the list (that matches the content or MD5 hash of an image).

Note: Do not use in IsVirtual mode.


Example

// Add images to a TImageEnMView if they are unique (same image is not already in the list)
ImageEnMView1.LockUpdate();
for sFilename in ssFiles do
begin
  bmp.Read( sFilename );
  if ImageEnMView1.IEMultiBitmap.IndexOf( bmp ) < 0 then
    ImageEnMView1.AppendImage( bmp );
end;
ImageEnMView1.UnlockUpdate();


See Also

 ImageHash
 RemoveDuplicates