ColorConverter
Overview
ColorConverter is a class in Aspose.Pdf FOSS for Java.
Converts color operators in page content streams from one color space to another.
Methods
| Signature | Description |
|---|---|
convert(document: Document, strategy: ColorConversionStrategy) | Converts all color operators in every page of the document according to the given strategy. |
rgbToGray(r: double, g: double, b: double) → double | Converts RGB to grayscale using luminance weights. |
rgbToCmyk(r: double, g: double, b: double) → double[] | Converts RGB to CMYK color values. |
cmykToRgb(c: double, m: double, y: double, k: double) → double[] | Converts CMYK to RGB color values. |