PdfColor Struct

Definition

A colour: a colour space and one number per component, as a colour operator sets it; for the Pattern colour space, also the pattern. A value type with its components stored inline, so setting a colour allocates nothing.

public readonly struct PdfColor : IEquatable<PdfColor>

Remarks

ISO 32000-2 §8.6.2 (colour values), §8.6.8 (colour operators, Table 73) and §8.7.3 (patterns). The components are kept as the content stream gave them; conversion (PdfColorConverter) clips each into its component's range. The colour space is the one the operator selected: a DefaultRGB resource replaces DeviceRGB only when the colour is painted (§8.6.5.6), through PdfDefaultColorSpaces.

A colour in the Pattern colour space names its pattern (PatternName, Pattern) and carries the matrix of the content stream that named it (PatternMatrix), the space the pattern matrix maps into (§8.7.2); for an uncoloured tiling pattern the components are in the underlying colour space (§8.7.3.3).

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

Constructors (1)

Fields (1)

Properties (7)

Methods (6)

Operators (2)