TilingPattern
Overview
TilingPattern is a class in Aspose.Pdf FOSS for Java.
Inherits from: PdfPattern.
Tiling pattern (ISO 32000-1:2008, §8.7.3).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
paintType | int | Read | Returns the paint type: 1 = colored, 2 = uncolored. |
tilingType | int | Read | Returns the tiling type: 1, 2, or 3. |
bBox | Rectangle | Read | Returns the pattern cell bounding box. |
xStep | double | Read | Returns the horizontal tile spacing. |
yStep | double | Read | Returns the vertical tile spacing. |
resources | Resources | Read | Returns the pattern’s own resources dictionary. |
contents | OperatorCollection | Read | Parses the tiling pattern’s content stream into operators. |
PAINT_COLORED | int | Read | Colored pattern: defines its own colors. |
PAINT_UNCOLORED | int | Read | Uncolored pattern: uses current non-pattern color. |
TILING_CONSTANT_SPACING | int | Read | Constant spacing: tiles are evenly spaced. |
TILING_NO_DISTORTION | int | Read | No distortion: tile spacing may be altered to maintain appearance. |
TILING_FASTER | int | Read | Faster tiling: distortion and uneven spacing allowed. |
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. |
cOSDictionary | COSDictionary | Read | Returns the underlying COS dictionary. |
Methods
| Signature | Description |
|---|---|
TilingPattern(dict: COSDictionary, parser: PDFParser) | Creates a TilingPattern from its dictionary/stream. |
getPaintType() → int | Returns the paint type: 1 = colored, 2 = uncolored. |
getTilingType() → int | Returns the tiling type: 1, 2, or 3. |
getBBox() → Rectangle | Returns the pattern cell bounding box. |
getXStep() → double | Returns the horizontal tile spacing. |
getYStep() → double | Returns the vertical tile spacing. |
getResources() → Resources | Returns the pattern’s own resources dictionary. |
getContents() → OperatorCollection | Parses the tiling pattern’s content stream into operators. |
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. |
getCOSDictionary() → COSDictionary | Returns the underlying COS dictionary. |
parse(obj: COSBase, parser: PDFParser) → PdfPattern | Factory: parses a pattern from a COS object. |