Skip to content

RgbColor

Namespace Nfty.Core.Imaging in assembly Nfty.Ticket.

public readonly struct RgbColor : IEquatable<RgbColor>

An 8-bit-per-channel color, used as the neutral currency between the color-space conversions and ImageSharp.

Constructors

RgbColor(byte, byte, byte)

public RgbColor(byte R, byte G, byte B);

Parameters

  • R (byte) - Red, 0-255.
  • G (byte) - Green, 0-255.
  • B (byte) - Blue, 0-255.

Properties

B

public byte B { get; init; }

Blue, 0-255.

G

public byte G { get; init; }

Green, 0-255.

R

public byte R { get; init; }

Red, 0-255.