SeparationColorSpace
Overview
SeparationColorSpace là một lớp trong Aspose.PDF FOSS cho Java. Dòng thừa kế từ: ColorSpaceBase.
Không gian màu phân biệt (ISO 32000-1:2008, §8.6.4.
Khóa học này cung cấp 10 phương pháp để làm việc với các đối tượng SeparationColorSpace trong các chương trình Java. Các phương pháp có sẵn bao gồm: SeparationColorSpace, fromArray, getAlternateCS, getColorantName, getName, getNumberOfComponents, getTintTransform, resolve, tintToAlternate, toRGBInt. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.PDF FOSS cho gói Java. Tài sản : alternateCS, colorantName, name, numberOfComponents, tintTransform.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | nhận được tên. |
numberOfComponents | int | Read | Nhận số lượng các thành phần. |
colorantName | String | Read | Trở lại tên màu sắc. |
alternateCS | ColorSpaceBase | Read | Trở lại không gian màu thay thế (fallback). |
tintTransform | PdfFunction | Read | Trở lại chức năng chuyển đổi màu sắc. |
Methods
| Signature | Description |
|---|---|
SeparationColorSpace(colorantName: String, alternateCS: ColorSpaceBase, tintTransform: PdfFunction) | tạo ra một không gian màu sắc tách rời. |
fromArray(arr: PdfArray, resources: Resources, parser: PDFParser) → SeparationColorSpace | Tải một không gian màu tách rời khỏi một file PDF. |
tintToAlternate(tint: double) → double[] | Chuyển đổi một giá trị màu (0..1) để thay thế các thành phần không gian màu. |
getName() → String | Quay lại tên. |
getNumberOfComponents() → int | Trả lại số lượng các thành phần. |
toRGBInt(comps: double[]) → int | Tint → thay thế thành phần (via tint transform) → RGB của alternate. |
getColorantName() → String | Trở lại tên màu sắc. |
getAlternateCS() → ColorSpaceBase | Trở lại không gian màu thay thế (fallback). |
getTintTransform() → PdfFunction | Trở lại chức năng chuyển đổi màu sắc. |
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser) → ColorSpaceBase |