DeviceNColorSpace
Overview
DeviceNColorSpace เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java. ทายาทจาก: ColorSpaceBase.
ระยะสี DeviceN (ISO 32000-1:2008, §8.6.6.5).
หมวดนี้ให้ 10 วิธีในการทํางานกับวัตถุ DeviceNColorSpace ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: DeviceNColorSpace, fromArray, getAlternateCS, getColorantNames, getName, getNumberOfComponents, getTintTransform, resolve, tintsToAlternate, toRGBInt. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: alternateCS, colorantNames, name, numberOfComponents, tintTransform.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | ได้ชื่อแล้ว. |
numberOfComponents | int | Read | ได้จํานวนองค์ประกอบ. |
colorantNames | String[] | Read | ส่งชื่อสีกลับ. |
alternateCS | ColorSpaceBase | Read | กลับพื้นที่สีตัวแทน (fallback). |
tintTransform | PdfFunction | Read | กลับฟังก์ชันการแปลงสีสัน. |
Methods
| Signature | Description |
|---|---|
DeviceNColorSpace(colorantNames: String[], alternateCS: ColorSpaceBase, tintTransform: PdfFunction) | สร้างพื้นที่สี DeviceN. |
fromArray(arr: PdfArray, resources: Resources, parser: PDFParser) → DeviceNColorSpace | การพาราสเปซสี DeviceN จากอาร์เรย์ PDF. |
tintsToAlternate(tints: double[]) → double[] | เปลี่ยนค่า N tint เป็นส่วนของพื้นที่สีสลับกัน. |
getName() → String | ส่งชื่อกลับมา. |
getNumberOfComponents() → int | กลับจํานวนองค์ประกอบ. |
toRGBInt(comps: double[]) → int | Tints → องค์ประกอบตัวแทน (ผ่านการแปลงสี) → RGB ของตัวเลือก. |
getColorantNames() → String[] | ส่งชื่อสีกลับ. |
getAlternateCS() → ColorSpaceBase | กลับพื้นที่สีตัวแทน (fallback). |
getTintTransform() → PdfFunction | กลับฟังก์ชันการแปลงสีสัน. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |