ImageEn, unit iewic

TIEWICReader.GetFrame

TIEWICReader.GetFrame


Declaration

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


Description

Retrieves the specified frame of the image.
If IOParams is specified then it is filled also with EXIF metatags.
If ParamsOnly is true, then the destBitmap is not filled, only IOParams values are set.
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;