IndexedColorSpace

IndexedColorSpace

Overview

IndexedColorSpace is a class in Aspose.Pdf FOSS for Java. Inherits from: ColorSpaceBase.

Indexed color space (ISO 32000-1:2008, §8.6.6.3).

Properties

NameTypeAccessDescription
nameStringRead
numberOfComponentsintRead
baseColorSpaceBaseReadReturns the base color space.
hivalintReadReturns the maximum valid index.

Methods

SignatureDescription
IndexedColorSpace(base: ColorSpaceBase, hival: int, lookupTable: byte[])Creates an IndexedColorSpace.
fromArray(arr: COSArray, resources: Resources, parser: PDFParser)IndexedColorSpaceCreates an IndexedColorSpace from a COSArray: [/Indexed base hival lookup].
getName()String
getNumberOfComponents()int
getBase()ColorSpaceBaseReturns the base color space.
getHival()intReturns the maximum valid index.
lookupColor(index: int)double[]Looks up a palette entry, returning the base color space components.
resolve(csObj: COSBase, resources: Resources, parser: PDFParser)ColorSpaceBaseResolves a color space from a PDF object.

See Also