THPDFJBIG2Decoder Class
THPDFJBIG2Decoder = class
constructor Create;
function LoadFromByteArray(ImageData, GlobalData: TJBIG2ByteArray): Boolean; overload;
function LoadFromByteArray(ImageData: TJBIG2ByteArray): Boolean; overload;
function LoadRegionFromByteArray(ImageData, GlobalData: TJBIG2ByteArray;
RegionLeft, RegionTop, RegionWidth, RegionHeight: Integer): Boolean; overload;
function LoadRegionFromByteArray(ImageData: TJBIG2ByteArray;
RegionLeft, RegionTop, RegionWidth, RegionHeight: Integer): Boolean; overload;
function GetScanline(Row: Integer; var Data: TJBIG2ByteArray): Boolean;
property Width: Integer read FWidth;
property Height: Integer read FHeight;
property ScanlineByteWidth: Integer read FScanlineByteWidth;
property LastRegionDecodeStats: TJBIG2RegionDecodeStats read FLastRegionDecodeStats;
property UsedIncrementalRegionDecode: Boolean read FUsedIncrementalRegionDecode;
property LastSegmentGraphValidationInfo: TJBIG2SegmentGraphValidationInfo
read FLastSegmentGraphValidationInfo;
end;
共有グローバルデータを使用して JBIG2 画像データをデコードし、結果をページ全体のビットマップまたは境界付きの領域ウィンドウとして公開します
LoadFromByteArray はページ全体をデコードし、LoadRegionFromByteArray は要求された矩形のみをデコードして、UsedIncrementalRegionDecode によって増分パスを報告します
GetScanline はデコード済みのスキャンラインバイトを行ごとに返し、LastRegionDecodeStats と LastSegmentGraphValidationInfo は呼び出しごとの統計とセグメントグラフの結果を公開します