PredictorDecoder

Vue de l’ensemble

‘PredictorDecoder’ est une classe dans Aspose.PDF FOSS pour Java.

Support de prédicteur PNG et TIFF pour les filtres Flate/LZW (§7.4.4.4, ISO 32000-1:2008).

Cette classe fournit 3 méthodes pour travailler avec PredictorDecoder objets dans les programmes Java. Les méthodologies disponibles comprennent: decode, encode', 'paethPredicter'. Tous les membres publics sont accessibles à n'importe quelle application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : PREDICTOR_NONE, PREDIKTor_PNG_AVERAGE;PEDICKTON_pNG-NONNE; TRODIKtON-PANG_OPTIMUM., REDikTOL_ PNG/PAETH` et 2 autres.

Propriétés

NameTypeAccessDescription
PREDICTOR_NONEintReadNo prediction.
PREDICTOR_TIFFintReadTIFF Predictor 2: horizontal differencing.
PREDICTOR_PNG_NONEintReadPNG None predictor (per-row filter byte present, but filter is 0).
PREDICTOR_PNG_SUBintReadPNG Sub predictor.
PREDICTOR_PNG_UPintReadPNG Up predictor.
PREDICTOR_PNG_AVERAGEintReadPNG Average predictor.
PREDICTOR_PNG_PAETHintReadPNG Paeth predictor.
PREDICTOR_PNG_OPTIMUMintReadPNG Optimum — each row may use a different filter.

méthodes

SignatureDescription
decode(data: byte[], predictor: int, columns: int, colors: int, bitsPerComponent: int)byte[]Decodes predictor-filtered data.
encode(data: byte[], predictor: int, columns: int, colors: int, bitsPerComponent: int)byte[]Encodes data with the specified predictor.
paethPredictor(a: int, b: int, c: int)intPaeth predictor function (PNG specification, RFC 2083).

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français