Shading

Overview

Shading is a class in Aspose.Pdf FOSS for Java.

Abstract base for shading dictionaries (ISO 32000-1:2008, §8.7.4.3).

Properties

NameTypeAccessDescription
shadingTypeintReadReturns the shading type (1–7).
colorSpaceColorSpaceBaseReadReturns the color space.
backgrounddouble[]ReadReturns the optional background color, or {@code null}.
bBoxRectangleReadReturns the optional bounding box, or {@code null}.
antiAliasbooleanReadReturns whether anti-aliasing is requested.
cOSDictionaryCOSDictionaryReadReturns the underlying dictionary.

Methods

SignatureDescription
getShadingType()intReturns the shading type (1–7).
getColorAt(x: double, y: double)double[]Evaluates the shading color at a point in shading coordinate space.
getColorSpace()ColorSpaceBaseReturns the color space.
getBackground()double[]Returns the optional background color, or {@code null}.
getBBox()RectangleReturns the optional bounding box, or {@code null}.
isAntiAlias()booleanReturns whether anti-aliasing is requested.
getCOSDictionary()COSDictionaryReturns the underlying dictionary.
parse(obj: COSBase, parser: PDFParser)ShadingFactory: parses a shading from a COS object.

See Also