FunctionBasedShading

FunctionBasedShading

Overview

FunctionBasedShading is a class in Aspose.Pdf FOSS for Java. Inherits from: Shading.

Function-based shading — ShadingType 1 (ISO 32000-1:2008, §8.7.4.5.1).

Properties

NameTypeAccessDescription
shadingTypeintRead
domaindouble[]ReadReturns the function domain [xmin, xmax, ymin, ymax].
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
FunctionBasedShading(dict: COSDictionary, parser: PDFParser)Creates a FunctionBasedShading from its dictionary.
getShadingType()int
getColorAt(x: double, y: double)double[]
getDomain()double[]Returns the function domain [xmin, xmax, ymin, ymax].
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