Struct PclColor
- Namespace
- PclIO
- Assembly
- PclIO.dll
Represents an 8-bit RGBA color.
public readonly record struct PclColor : IEquatable<PclColor>Implements
Inherited Members
Constructors
PclColor(byte, byte, byte, byte)
Represents an 8-bit RGBA color.
public PclColor(byte R, byte G, byte B, byte A = 255)Parameters
Rbyte-
Red channel.
Gbyte-
Green channel.
Bbyte-
Blue channel.
Abyte-
Alpha channel; 255 (opaque) when the file has no alpha.
Properties
A
Alpha channel; 255 (opaque) when the file has no alpha.
public byte A { get; init; }Property Value
B
Blue channel.
public byte B { get; init; }Property Value
G
Green channel.
public byte G { get; init; }Property Value
R
Red channel.
public byte R { get; init; }Property Value
Methods
ToString()
Formats as "RGBA(r, g, b, a)", independent of the current culture.
public override string ToString()