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;
Descodifica dados de imagem JBIG2, opcionalmente com dados globais partilhados, e expõe o resultado como bitmaps de página completa ou janelas de região delimitadas
LoadFromByteArray descodifica uma página completa, enquanto LoadRegionFromByteArray descodifica apenas o retângulo pedido e reporta o caminho incremental através de UsedIncrementalRegionDecode
GetScanline devolve os bytes descodificados da scanline linha a linha, e LastRegionDecodeStats mais LastSegmentGraphValidationInfo expõem estatísticas por chamada e observações sobre o grafo de segmentos