ShadingPattern
Overview
ShadingPattern is a class in Aspose.PDF FOSS for Java.
Inherits from: PdfPattern.
Shading pattern — PatternType 2 (ISO 32000-1:2008, §8.7.4).
This class provides 7 methods for working with ShadingPattern objects in Java programs.
Available methods include: ShadingPattern, getExtGState, getMatrix, getPatternType, getPdfDictionary, getShading, parse.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: extGState, matrix, patternType, pdfDictionary, shading.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
shading | Shading | Read | Returns the shading object. |
extGState | PdfDictionary | Read | Returns the ExtGState associated with this pattern (if any). |
patternType | int | Read | Returns the pattern type: 1 for tiling, 2 for shading. |
matrix | Matrix | Read | Returns the pattern matrix that maps pattern space to user space. |
pdfDictionary | PdfDictionary | Read | Returns the underlying PDF dictionary. |
Methods
| Signature | Description |
|---|---|
ShadingPattern(dict: PdfDictionary, parser: PDFParser) | Creates a ShadingPattern from its dictionary. |
getShading() → Shading | Returns the shading object. |
getExtGState() → PdfDictionary | Returns the ExtGState associated with this pattern (if any). |
getPatternType() → int | Returns the pattern type: 1 for tiling, 2 for shading. |
getMatrix() → Matrix | Returns the pattern matrix that maps pattern space to user space. |
getPdfDictionary() → PdfDictionary | Returns the underlying PDF dictionary. |
parse(obj: PdfBase, parser: PDFParser) → PdfPattern | Factory: parses a pattern from a PDF object. |