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
| Name | Type | Access | Description |
|---|---|---|---|
PREDICTOR_NONE | int | Read | No prediction. |
PREDICTOR_TIFF | int | Read | TIFF Predictor 2: horizontal differencing. |
PREDICTOR_PNG_NONE | int | Read | PNG None predictor (per-row filter byte present, but filter is 0). |
PREDICTOR_PNG_SUB | int | Read | PNG Sub predictor. |
PREDICTOR_PNG_UP | int | Read | PNG Up predictor. |
PREDICTOR_PNG_AVERAGE | int | Read | PNG Average predictor. |
PREDICTOR_PNG_PAETH | int | Read | PNG Paeth predictor. |
PREDICTOR_PNG_OPTIMUM | int | Read | PNG Optimum — each row may use a different filter. |
méthodes
| Signature | Description |
|---|---|
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) → int | Paeth predictor function (PNG specification, RFC 2083). |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise