HPDFEncodePredictor 関数

Flate または LZW 圧縮の前に、PDF TIFF または PNG 予測子変換で完全なラスタ行をエンコードします

宣言

function HPDFEncodePredictor(const Data: AnsiString; Predictor, Colors,
  BitsPerComponent, Columns: Integer; MaxOutputBytes: Int64= 0): AnsiString;

ユニット

HPDFPredictor

パラメータ

名前目的
DataPDF サンプル順でパックされた未フィルタ行
Predictorアイデンティティは 1、TIFF 水平差分は 2、固定 PNG フィルターは 10 から 14、行ごとの適応 PNG 選択は 15
Colorsピクセルあたりの色成分数
BitsPerComponent1、2、4、8、または 16 ビットのサンプル幅
Columns完全な各入力行のピクセル数
MaxOutputBytesオプションの厳密な出力上限、または明示的な上限なしの場合はゼロ

戻り値

一致する圧縮フィルターに使用可能な予測子エンコード済みバイトを返します

使用上の注意

例

Predicted := HPDFEncodePredictor(Raster, 15, 3, 8, Width);
Decoded := HPDFDecodePredictor(Predicted, 15, 3, 8, Width);

関連 API