OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

Rgb24

public readonly record struct Rgb24 : IEquatable<Rgb24>

One entry of a palette's colour table: eight bits per channel, no alpha.

Three bytes with no padding, so a ReadOnlyMemory of these is byte-for-byte an RGB image one pixel high -- which is what a gradient strip or a legend is. It can be handed to a texture upload or a bitmap constructor without rearranging anything.

Rgb24: constructors

public Rgb24(byte R, byte G, byte B)

One entry of a palette's colour table: eight bits per channel, no alpha.

  • R: The red channel, 0-255.
  • G: The green channel, 0-255.
  • B: The blue channel, 0-255.

Three bytes with no padding, so a ReadOnlyMemory of these is byte-for-byte an RGB image one pixel high -- which is what a gradient strip or a legend is. It can be handed to a texture upload or a bitmap constructor without rearranging anything.

Rgb24: properties

public byte B { get; init; }

The blue channel, 0-255.

public byte G { get; init; }

The green channel, 0-255.

public byte R { get; init; }

The red channel, 0-255.