ImageEn, unit iewic

TIEWICReader.GetFrame

TIEWICReader.GetFrame


Declaration

function GetFrame(frameIndex: integer; destBitmap: TIEBitmap; IOParams: TIOParams = nil; Aborting: pboolean = nil; OnProgressFunc: TIEProgressEvent = nil): Boolean;


Description

Retrieves the specified frame of the image.
If IOParams is specified then it is filled also with EXIF metatags.
Result is false if a loading error is encountered.

See also: Open


Example

with TIEWICReader.Create do
begin
  Open( 'C:\input.tiff' );
  fCount := FrameCount;
  for i := 0 to fCount-1 do
    GetFrame(i, bitmap[i]);
  Free;
end;