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는 호출별 통계와 세그먼트 그래프 검증 결과를 노출합니다