ImageEn, unit iexBitmaps

TIEMultiBitmap.ImageHash

TIEMultiBitmap.ImageHash


Declaration

property ImageHash[idx: Integer]: AnsiString;


Description

Returns the MD5 Hash of image, idx.

Note: Do not use in IsVirtual mode.


Examples

// Output hashes of all images to a Listbox
for i := 0 to mbmp.Count - 1 do
  ListBox1.Items.Add( mbmp.ImageHash[i] );


// Only add image if not identical to the previous image
if ( mbmp.Count > 0 ) and ( newBitmap.GetHash = mbmp.ImageHash[ mbmp.Count - 1 ]) then
begin
  // Image is same as last one, increase display time
  mbmp.Params[ mbmp.Count - 1 ].GIF_DelayTime := mbmp.Params[ mbmp.Count - 1 ].GIF_DelayTime + newInterval;
end
else
begin
  // New image
  mbmp.AppendImage( newBitmap );
  mbmp.Params[ mbmp.Count - 1 ].GIF_DelayTime := newInterval;
end;


See Also

 IndexOf
 RemoveDuplicates
 GetHash