ColorSpaceBase

ColorSpaceBase

Overview

ColorSpaceBase is a class in Aspose.PDF FOSS for Java.

Abstract base for all PDF color spaces (ISO 32000-1:2008, §8.6).

This class provides 4 methods for working with ColorSpaceBase objects in Java programs. Available methods include: getName, getNumberOfComponents, resolve, toRGBInt. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: name, numberOfComponents.

Properties

NameTypeAccessDescription
nameStringReadReturns the color space name (e.g., “DeviceRGB”, “ICCBased”, “Indexed”).
numberOfComponentsintReadReturns the number of color components in this color space.

Methods

SignatureDescription
getName()StringReturns the color space name (e.g., “DeviceRGB”, “ICCBased”, “Indexed”).
getNumberOfComponents()intReturns the number of color components in this color space.
toRGBInt(comps: double[])intConverts component values in THIS color space (each typically 0..1)
to a packed ARGB int (alpha=0xFF).
resolve(csObj: PdfBase, resources: Resources, parser: PDFParser)ColorSpaceBase

See Also

 English