ImageEn, unit imageenio

TImageEnIO

TImageEnIO


Description


TImageEnIO provides input/output support to ImageEn:
- Loading and saving images
- Access to image properties and meta-data
- Acquisition of images from cameras and scanners
- Printing
- DirectShow functions for multimedia support

See also: TImageEnMIO, which is made to work with images containing multiple frames (e.g. animated GIFs)




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

1. Using the IO property of a TImageEnView or TImageEnVect


ImageEnView1.IO.LoadFromFile('C:\MyImage.jpeg');
ImageEnView1.IO.DoPrintPreviewDialog;


2. Attached to a TBitmap or TIEBitmap in code


MyBitmap := TBitmap.create;
AnImageEnIO := TImageEnIO.CreateFromBitmap(MyBitmap);
AnImageEnIO.LoadFromFile('C:\input.jpg');
...
AnImageEnIO.Free;
MyBitmap.Free;


3. Attached to a TImage


Note: In this case a TImageEnIO would be added to the form and the AttachedTImage set appropriately.


Notes


- Ensure you do not call any TImageEnIO methods before it is actually attached to an image container (TImageEnView, TIEBitmap, etc)
- Do not attach TImageEnIO to a TImageEnMView component. Only a TImageEnMIO can be attached to a TImageEnMView component.



General Methods and Properties


Connected Component
  AttachedBitmap
  AttachedIEBitmap
  AttachedImageEn
  AttachedTImage
  Update


Generic Input/Output
  Aborting
  AssignParams
  AutoAdjustDPI
  Background
  Bitmap
  CaptureFromScreen
  ChangeBackground
  Create
  CreateFromBitmap
  DefaultDitherMethod
  FilteredAdjustDPI
  IEBitmap
  LoadFromBuffer
  LoadFromFileAuto
  LoadFromFile
  LoadFromResource
  LoadFromStream
  LoadFromText
  LoadFromURL
  NativePixelFormat
  Params
  ParamsFromBuffer
  ParamsFromFile
  ParamsFromStream
  SaveToFile
  SaveToStream
  SaveToText
  Seek
  StreamHeaders
  WicFastLoading


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


Aynchronous Input/Output
  AsyncMode
  AsyncRunning
  ThreadsCount
  WaitThreads


DirectShow Capture
  DShowParams


Dialogs
  DialogsMeasureUnit
  DoPreviews
  ExecuteOpenDialog
  ExecuteSaveDialog
  PreviewFont
  PreviewFontEnabled
  PreviewsParams
  SimplifiedParamsDialogs


Printing
  DoPrintPreviewDialog
  PreviewPrintImage
  PrintImagePos
  PrintImage
  PrintingFilterOnSubsampling
  PrintingMaintainAR
  PrintPreviewParams



Format-Specific Methods


Adobe PDF
  ClosePDFFile
  CreatePDFFile
  LoadFromFilePDF
  LoadFromStreamPDF
  SaveToFilePDF
  SaveToPDF
  SaveToStreamPDF


Adobe PSD
  LoadFromFilePSD
  LoadFromStreamPSD
  SaveToFilePSD
  SaveToStreamPSD


AVI Videos
  CloseAVIFile
  CreateAVIFile
  IsOpenAVI
  LoadFromAVI
  OpenAVIFile
  SaveToAVI


BMP
  LoadFromFileBMP
  LoadFromStreamBMP
  SaveToFileBMP
  SaveToStreamBMP


BmpRaw (a true "raw" bitmap format, not a camera Raw file)
  LoadFromFileBMPRAW
  LoadFromStreamBMPRAW
  SaveToFileBMPRAW
  SaveToStreamBMPRAW


Camera Raw Files
  LoadFromFileRAW
  LoadFromStreamRAW
  LoadJpegFromFileCRW


Cursors (CUR)
  LoadFromFileCUR
  LoadFromStreamCUR


DICOM Medical Imaging Format
  LoadFromFileDICOM
  LoadFromStreamDICOM
  SaveToFileDICOM
  SaveToStreamDICOM


GIF
  InsertToFileGIF
  LoadFromFileGIF
  LoadFromStreamGIF
  SaveToFileGIF
  SaveToStreamGIF
  ReplaceFileGIF


Icons (ICO)
  LoadFromFileICO
  LoadFromStreamICO
  SaveToFileICO
  SaveToStreamICO


IEN (ImageEn native image format with layers)
  LoadFromFileIEN
  LoadFromStreamIEN
  SaveToFileIEN
  SaveToStreamIEN


JPEG
  InjectJpegEXIFStream
  InjectJpegEXIF
  InjectJpegIPTCStream
  InjectJpegIPTC
  LoadFromFileJpeg
  LoadFromStreamJpeg
  SaveToFileJpeg
  SaveToStreamJpeg


JPEG 2000
  LoadFromFileJ2K
  LoadFromFileJP2
  LoadFromStreamJ2K
  LoadFromStreamJP2
  SaveToFileJ2K
  SaveToFileJP2
  SaveToStreamJ2K
  SaveToStreamJP2


Media Files (AVI, MPEG, WMV..)
  CloseMediaFile
  IsOpenMediaFile
  LoadFromMediaFile
  OpenMediaFile


Meta Files (WMF, EMF)
  ImportMetafile
  MergeMetaFile


Microsoft HD Photos/JPEG XR (WDP/JXR/HDP)
  LoadFromFileHDP
  LoadFromStreamHDP
  SaveToFileHDP
  SaveToStreamHDP


PCX and DCX (Multipage PCX)
  LoadFromFileDCX
  LoadFromStreamDCX
  LoadFromFilePCX
  LoadFromStreamPCX
  SaveToStreamDCX
  SaveToFileDCX
  InsertToFileDCX
  SaveToFilePCX
  SaveToStreamPCX


PNG
  LoadFromFilePNG
  LoadFromStreamPNG
  SaveToFilePNG
  SaveToStreamPNG


PostScript (PS)
  ClosePSFile
  CreatePSFile
  SaveToFilePS
  SaveToPS
  SaveToStreamPS


PXM (PPM, PBM, PGM)
  LoadFromFilePXM
  LoadFromStreamPXM
  SaveToFilePXM
  SaveToStreamPXM


SVG (Scalable Vector Graphics)
  SaveToFileSVG
  SaveToStreamSVG


Targa (TGA)
  LoadFromFileTGA
  LoadFromStreamTGA
  SaveToFileTGA
  SaveToStreamTGA


TIFF
  InjectTIFFEXIF
  InsertToFileTIFF
  InsertToStreamTIFF
  LoadFromFileTIFF
  LoadFromStreamTIFF
  ReplaceFileTIFF
  ReplaceStreamTIFF
  SaveToFileTIFF
  SaveToStreamTIFF


WBMP
  LoadFromFileWBMP
  LoadFromStreamWBMP
  SaveToFileWBMP
  SaveToStreamWBMP


Windows Images (such as HEIF/HEIC, DirectDraw Surface, etc)
  LoadFromFileWIC
  LoadFromStreamWIC
  SaveToFileWIC
  SaveToStreamWIC



Events


  OnAcquireBitmap
  OnAcquireClose
  OnDoPreviews
  OnFinishWork
  OnIOPreview
  OnPrintPage
  OnProgress