KitePattern

sealed class KitePattern

Parsed /Pattern resource entry (ISO 32000-1 §8.7).

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Shading(val matrix: Matrix, val extGState: ExtGState?, val shading: KiteShading) : KitePattern
Link copied to clipboard
data class Tiling(val matrix: Matrix, val extGState: ExtGState?, val paintType: Int, val tilingType: Int, val bbox: Rectangle, val xStep: Double, val yStep: Double, val contentBytes: ByteArray, val resources: PdfDictionary? = null, val baseColor: RgbColor = RgbColor(0.5, 0.5, 0.5)) : KitePattern

Tiling pattern (PatternType = 1). The content stream lives in contentBytes; the PDF renderer replays it once per tile across the filled region. baseColor is the flat approximation for consumers that don't replay cells (and the emergency fallback for degenerate cell geometry).

Link copied to clipboard

A pattern we recognise but can't render yet (e.g. tiling, or one that failed to resolve). Fills using it are skipped rather than collapsing to the default colour, which would flood a full-page background pattern solid black.

Properties

Link copied to clipboard
abstract val extGState: ExtGState?

Optional ExtGState applied while painting the pattern.

Link copied to clipboard
abstract val matrix: Matrix

Pattern-space-to-default-space transform (/Matrix).