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).

This class provides 8 methods for working with Shading objects in Java programs. Available methods include: getBBox, getBackground, getColorAt, getColorSpace, getPdfDictionary, getShadingType, isAntiAlias, parse. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: antiAlias, bBox, background, colorSpace, pdfDictionary, shadingType.

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.
pdfDictionaryPdfDictionaryReadReturns 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.
getPdfDictionary()PdfDictionaryReturns the underlying dictionary.
parse(obj: PdfBase, parser: PDFParser)ShadingFactory: parses a shading from a PDF object.

See Also

 English