Table of Contents

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

R byte

Red channel.

G byte

Green channel.

B byte

Blue channel.

A byte

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

byte

B

Blue channel.

public byte B { get; init; }

Property Value

byte

G

Green channel.

public byte G { get; init; }

Property Value

byte

R

Red channel.

public byte R { get; init; }

Property Value

byte

Methods

ToString()

Formats as "RGBA(r, g, b, a)", independent of the current culture.

public override string ToString()

Returns

string