THPDFJBIG2Decoder Sınıfı

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 görsel verisini, istenirse paylaşılan global veriyle birlikte decode eder ve sonucu tüm sayfa bitmap'leri ya da sınırlı region pencereleri olarak sunar

LoadFromByteArray sayfanın tamamını decode eder; LoadRegionFromByteArray ise yalnızca istenen dikdörtgeni decode eder ve artımlı yolu UsedIncrementalRegionDecode üzerinden bildirir

GetScanline, decode edilmiş scanline baytlarını satır satır döndürür; LastRegionDecodeStats ile LastSegmentGraphValidationInfo ise çağrı başına istatistikleri ve segment grafiği bulgularını ortaya koyar

JBIG2 Sıkıştırma Desteği