DeviceNColorSpace

DeviceNColorSpace

Overview

DeviceNColorSpace is a class in Aspose.PDF FOSS for Java. Inherits from: ColorSpaceBase.

DeviceN color space (ISO 32000-1:2008, §8.6.6.5).

This class provides 10 methods for working with DeviceNColorSpace objects in Java programs. Available methods include: DeviceNColorSpace, fromArray, getAlternateCS, getColorantNames, getName, getNumberOfComponents, getTintTransform, resolve, tintsToAlternate, toRGBInt. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: alternateCS, colorantNames, name, numberOfComponents, tintTransform.

Properties

NameTypeAccessDescription
nameStringReadGets the name.
numberOfComponentsintReadGets the number of components.
colorantNamesString[]ReadReturns the colorant names.
alternateCSColorSpaceBaseReadReturns the alternate (fallback) color space.
tintTransformPdfFunctionReadReturns the tint transform function.

Methods

SignatureDescription
DeviceNColorSpace(colorantNames: String[], alternateCS: ColorSpaceBase, tintTransform: PdfFunction)Creates a DeviceN color space.
fromArray(arr: PdfArray, resources: Resources, parser: PDFParser)DeviceNColorSpaceParses a DeviceN color space from a PDF array.
tintsToAlternate(tints: double[])double[]Converts N tint values to alternate color space components.
getName()StringReturns the name.
getNumberOfComponents()intReturns the number of components.
toRGBInt(comps: double[])intTints → alternate components (via tint transform) → alternate’s RGB.
getColorantNames()String[]Returns the colorant names.
getAlternateCS()ColorSpaceBaseReturns the alternate (fallback) color space.
getTintTransform()PdfFunctionReturns the tint transform function.
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser)ColorSpaceBase

See Also

 English