ImageEn, unit iexBitmaps

TIOParams.Create

TIOParams.Create

Declaration

constructor Create(AttachTo: TObject = nil); overload;
constructor Create(const Filename: String); overload;

Description

A TIOParams object is automatically created by the TImageEnIO component and optionally by a TIEBitmap if ParamsEnabled is True. AttachTo can be a TImageEnIO or TIEBitmap.
Second overload retrieves the meta data for the specified image file.
You will generally never need to create a TIOParams object yourself.

Example

p := TIOParams.Create( 'C:\myImage.jpg' );
try
  // Get width and height of the image
  ImageWidth  := p.Width;
  ImageHeight := p.Height;
finally
  p.Free();
end;