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

This class provides 10 methods for working with FunctionBasedShading objects in Java programs. Available methods include: FunctionBasedShading, getBBox, getBackground, getColorAt, getColorSpace, getDomain, 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, domain, pdfDictionary, and 1 more.

Properties

NameTypeAccessDescription
shadingTypeintReadGets the shading type.
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.
pdfDictionaryPdfDictionaryReadReturns the underlying dictionary.

Methods

SignatureDescription
FunctionBasedShading(dict: PdfDictionary, parser: PDFParser)Creates a FunctionBasedShading from its dictionary.
getShadingType()intReturns the shading type.
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.
getPdfDictionary()PdfDictionaryReturns the underlying dictionary.
parse(obj: PdfBase, parser: PDFParser)ShadingFactory: parses a shading from a PDF object.

See Also

 English