PredictorDecoder
Overview
PredictorDecoder เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java.
การสนับสนุน PNG และ TIFF สําหรับกรอง Flate/LZW (§7.4.4.4, ISO 32000-1:2008).
หมวดนี้ให้ 3 วิธีในการทํางานกับวัตถุ PredictorDecoder ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: decode, encode, paethPredictor. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: PREDICTOR_NONE, PREDICTOR_PNG_AVERAGE, PREDICTOR_PNG_NONE, PREDICTOR_PNG_OPTIMUM, PREDICTOR_PNG_PAETH, PREDICTOR_PNG_SUB,และอีก 2 ตัว.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PREDICTOR_NONE | int | Read | ไม่มีการคาดการณ์. |
PREDICTOR_TIFF | int | Read | TIFF Predictor 2: การแยกทางแนวขอบ. |
PREDICTOR_PNG_NONE | int | Read | PNG None predictor (มีไบต์กรองต่อแถว แต่การกรอกคือ 0). |
PREDICTOR_PNG_SUB | int | Read | พี.จี ซับพราคิตออร์ด. |
PREDICTOR_PNG_UP | int | Read | PNG Up การคาดการณ์. |
PREDICTOR_PNG_AVERAGE | int | Read | PNG สูงสุดการคาดการณ์. |
PREDICTOR_PNG_PAETH | int | Read | PNG Paeth การคาดการณ์. |
PREDICTOR_PNG_OPTIMUM | int | Read | PNG Optimum แต่ละแถวอาจใช้กรองที่แตกต่างกันได้. |
Methods
| Signature | Description |
|---|---|
decode(data: byte[], predictor: int, columns: int, colors: int, bitsPerComponent: int) → byte[] | แผนไขข้อมูลที่ผ่านการกรองของ predictor. |
encode(data: byte[], predictor: int, columns: int, colors: int, bitsPerComponent: int) → byte[] | การรหัสข้อมูลด้วยตัวคาดการณ์ที่กําหนดไว้. |
paethPredictor(a: int, b: int, c: int) → int | การประกอบการคาดเดาของ Paeth (ระบุ PNG, RFC 2083). |