Struct PdfColor
Color representation in PDF vector operations, normalized to [0.0, 1.0].
public readonly record struct PdfColor : IEquatable<PdfColor>
- Implements
- Inherited Members
Constructors
PdfColor(float, float, float, float)
Color representation in PDF vector operations, normalized to [0.0, 1.0].
public PdfColor(float R, float G, float B, float A = 1)
Parameters
Fields
Black
public static readonly PdfColor Black
Field Value
Transparent
public static readonly PdfColor Transparent
Field Value
White
public static readonly PdfColor White
Field Value
Properties
A
public float A { get; init; }
Property Value
B
public float B { get; init; }
Property Value
G
public float G { get; init; }
Property Value
R
public float R { get; init; }
Property Value
Methods
FromCmyk(float, float, float, float, float)
public static PdfColor FromCmyk(float c, float m, float y, float k, float alpha = 1)
Parameters
Returns
FromGray(float, float)
public static PdfColor FromGray(float gray, float alpha = 1)
Parameters
Returns
FromRgb(float, float, float, float)
public static PdfColor FromRgb(float r, float g, float b, float alpha = 1)