PdfShading Class

Definition

A shading: a smooth transition between colours across an area, resolved from its shading dictionary (or stream) into a device-independent model that any backend can draw.

public abstract class PdfShading

Remarks

ISO 32000-2 §8.7.4.3 (Table 77, the entries common to all shadings) and §8.7.4.5. Get one with GetShading(CosObject), from a pattern (Shading) or from the sh operator (Model). The subclass says which of the seven types it is. Coordinates are in the shading's target space: the current user space for sh, pattern space in a shading pattern.

A model is an immutable snapshot of the object when it was read, not a live view: it is cached per document and read again only after the object changes through the public API. Colours stay in the shading's colour space: nothing is converted here. A shading that cannot be used (a missing or Pattern colour space, a missing function, malformed coordinates) has IsValid false, paints nothing, and the reason is in the document's diagnostics.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (14)

Methods (1)