DisplayShading Struct

Definition

A shading paint in a display list: the resolved shading, the space its coordinates are in, whether its Background is painted, and what its colours' conversion depends on. Never converted: a backend evaluates and converts the colours itself. Valid only during the backend call that hands it over.

public ref readonly struct DisplayShading

Remarks

ISO 32000-2 §8.7.4: a shading reaches the backend from the sh operator (§8.7.4.2, Table 76) or as the paint of a fill or stroke in a shading pattern (§8.7.4.1, Table 75). The model (PdfShading, one of its seven subclasses) is an immutable snapshot, safe to read from any thread; its colours are in InterpolationColorSpace and EvaluateFunction(ReadOnlySpan<Single>, Span<Single>) gives them for a parametric value.

Convert with list.Document.GetColorConverter(shading.Shading.InterpolationColorSpace, shading.Conversion with { Target = … }, shading.DefaultColorSpaces) (GetColorConverter(PdfColorSpace, ColorConversion, PdfDefaultColorSpaces?)), and the Background in ColorSpace the same way.

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

Properties (5)