ImageEn, unit iemio

TImageEnMIO

TImageEnMIO


Description


TImageEnMIO provides input/output support to ImageEn when working with images containing multiple frames (TIFF, GIF, DICOM, AVI, etc):
- Loading and saving multi-frame images
- Access to image properties and meta-data
- Acquisition of multiple images from cameras and scanners
- Printing of thumbnails and images

ImageEn supports loading and saving multiple frames from GIF, TIFF, AVI, DCX, DICOM and ICO formats. It can also load from CUR format, and save to PDF and PS format (loading of PDF is supported if a relevant plug-in is installed).

Generally you will not add a TImageEnMIO component directly to your project. It is accessed via the following methods:

1. Using the MIO property of a TImageEnMView


ImageEnMView1.MIO.LoadFromFile('C:\MyImage.tiff');
ImageEnMView1.MIO.DoPrintPreviewDialog;


2. Attached to a TIEMultiBitmap in code


MyMBitmap := TIEMultiBitmap.create;
AnImageEnMIO := TImageEnMIO.CreateFromIEMBitmap(MyMBitmap);
AnImageEnMIO.LoadFromFile('C:\input.gif');
...
AnImageEnMIO.Free;
MyMBitmap.Free;


Notes


- Ensure you do not call any TImageEnMIO methods before it is actually attached to an image container (TImageEnMView, TIEMultiBitmap, etc)
- Users often attach a TImageEnIO component to TImageEnMView component. This is not correct. The TImageEnMIO component must be attached only to a TImageEnMView component.

See also TImageEnIO, which works with single-frame images, such as JPEG, BMP, etc.


Example


ImageEnMView1.MIO.DoPrintPreviewDialog();





General Methods and Properties


Connected Component
  AttachedIEMBitmap
  AttachedMView
  CreateFromIEMBitmap
  IEMBitmap
  Update


Generic Input/Output
  Aborting
  AllowMalformedPages
  AutoAdjustDPI
  DefaultDitherMethod
  DuplicateCompressionInfo
  ExecuteOpenDialog
  ExecuteSaveDialog
  FilteredAdjustDPI
  LoadFromBuffer
  LoadFromFileAuto
  LoadFromFile
  LoadFromFiles
  LoadFromStream
  LoadFromURL
  NativePixelFormat
  Params
  ParamsCount
  ParamsFromBuffer
  ParamsFromFile
  ParamsFromStream
  SaveToFile
  SaveToStream


Dialogs
  DialogsMeasureUnit
  DoPreviews
  PreviewFont
  PreviewFontEnabled
  PreviewsParams
  SimplifiedParamsDialogs


Image Acquisition (Twain/WIA)
  Acquire
  SelectAcquireSource
  SelectedAcquireSource
  SetAcquireSource
  AcquireParams
  DCIMParams
  TwainParams
  TwainAcquireOpen
  TwainAcquireClose
  WIAParams


Printing
  DoPrintPreviewDialog
  PreviewPrintImages
  PrintImage
  PrintImagePos
  PrintImages
  PrintingFilterOnSubsampling
  PrintingMaintainAR
  PrintPreviewParams


Contact Sheets
  DoSavePreviewDialog
  PrintImagesToBitmap
  PrintImagesToFile



Format-Specific Methods


Adobe PDF
  LoadFromFilePDF (Requires Plug-In)
  LoadFromStreamPDF (Requires Plug-In)
  SaveToFilePDF
  SaveToStreamPDF


AVI Videos
  LoadFromFileAVI
  SaveToFileAVI


Cursor Resources (CUR)
  LoadFromFileCUR
  LoadFromStreamCUR


DICOM Medical Imaging Format
  LoadFromFileDICOM
  LoadFromStreamDICOM
  SaveToFileDICOM
  SaveToStreamDICOM


DCX (Multipage PCX)
  LoadFromFileDCX
  LoadFromStreamDCX
  SaveToFileDCX
  SaveToStreamDCX


GIF
  LoadFromFileGIF
  LoadFromStreamGIF
  SaveToFileGIF
  SaveToStreamGIF


Icons (ICO)
  LoadFromFileICO
  LoadFromStreamICO
  SaveToFileICO
  SaveToStreamICO


Media Files (DirectShow)
  LoadFromMediaFile


PostScript (PS)
  SaveToFilePS
  SaveToStreamPS


TIFF
  LoadFromFileTIFF
  LoadFromStreamTIFF
  SaveToFileTIFF
  SaveToStreamTIFF



Events


  OnAcquireBitmap
  OnAcquireClose
  OnAfterAcquireBitmap
  OnDoPreviews
  OnFinishWork
  OnPrintPage
  OnProgress