ImageEn, unit iexBitmaps

TIEMultiBitmap

Properties · Methods · Events · Examples

Declaration

TIEMultiBitmap = class(TIECustomMultiBitmap);


Description

TIEMultiBitmap is an array of images. It allows you to work with multiple-frame images in memory, such as GIF, TIFF, AVI, etc. It is also used by TImageEnMView to store images within the grid.


Debugging Visualizer

You can view the content of a TIEMultiBitmap while debugging by hovering over the object and clicking the Inspect button:


Examples


// Convert a multi-page TIFF to a PDF
mbmp := TIEMultiBitmap.Create();
mbmp.LoadFromFile( 'D:\input.tif' );
mbmp.SaveToFile( 'D:\output.pdf' );
mbmp.Free;

// Add an image to the current image list
MBitmap.AppendImage( 'C:\MyImage.tif' );

// Delete the third image from the image list
MBitmap.DeleteImage( 2 );

// Create an animated GIF file from ten source images
mbmp := TIEMultiBitmap.Create();
for i := 0 to 9 do
begin
  mbmp.AppendImage( format( 'D:\Source\Frame %d.bmp', [i] ));
  mbmp.Params[i].GIF_DelayTime := 10; // Display each frame for 1/10th of a second
end;
mbmp.SaveToFile( 'D:\animated.gif' );
mbmp.Free;

Methods and Properties


General
Public Method  Create
Public Method  Destroy
Public Method  Assign
Public Method  AssignTo
Public Method  Equals
Public Property  Modified

Page Editing
Public Method  AppendImage
Public Method  AppendSplit
Public Method  Clear
Public Property  Count
Public Method  DeleteImage
Public Method  IndexOf
Public Method  InsertImage
Public Method  InsertTransitionFrames
Public Method  MoveImage
Public Method  RemoveBlankPages
Public Method  RemoveDuplicates
Public Method  SwapImages

Image Access
Public Method  CopyToIEBitmap
Public Method  GetBitmap
Public Method  GetTIEBitmap
Public Method  PrepareSpaceFor
Public Method  ReleaseBitmap
Public Method  SetImage
Public Method  SetImageRect

Image Information
Public Property  ImageBitCount
Public Property  ImageDictionary
Public Property  ImageFilename
Public Property  ImageHash
Public Property  ImageHeight
Public Property  ImageTag
Public Property  ImageUserPointer
Public Property  ImageWidth

Input/Output
Public Property  ImageCacheSize
Public Property  ImageCacheUseDisk
Public Property  Filename
Public Method  FillFromDirectory
Public Method  FillFromList
Public Method  LoadFromFile
Public Method  LoadFromStream
Public Method  LoadFromBuffer
Public Method  GetImageToFile
Public Method  GetImageToStream
Public Method  LoadSnapshot
Public Method  SaveSnapshot
Public Method  SaveToFile
Public Method  SaveToStream

Input/Output Parameters (Meta-Data)
Public Method  DuplicateCompressionInfo
Public Property  ParamsEnabled
Public Property  Params

Image Editing
Public Method  Flip
Public Method  FlipAll
Public Method  Resample
Public Method  ResampleAll
Public Method  Rotate
Public Method  RotateAll

Virtual Multi-Bitmaps
Public Property  IsVirtual
Public Property  VirtualCount
Event  OnGetVirtual


Events

Event  OnChanged
Event  OnImageLoaded
Event  OnProgress


See Also

TIEDBMultiBitmap