OptrisOptrisDocumentation

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

CustomPalette

public sealed record CustomPalette : IEquatable<CustomPalette>

A palette an application supplies itself.

The colours are the palette. Nothing is registered anywhere and there is no handle to keep: hand one to ThermalCamera.SetCustomPalette(…) and that camera colorizes with it until it is given another or told to go back to a built-in. Two cameras can be using two different ones at once.

It is saved and restored with the camera's configuration, and the colours themselves go into the file rather than a reference to them -- so a program that reads the file back draws the right picture whether or not it has ever seen this palette before.

CustomPalette: constructors

public CustomPalette(string Name, ReadOnlyMemory<Rgb24> Colors)

A palette an application supplies itself.

  • Name: What to call it, for a legend caption and for the saved configuration. Must not be empty. It is not an identifier and is never matched against anything.
  • Colors: The colours, coldest first. Exactly Palettes.ColorCount of them.

The colours are the palette. Nothing is registered anywhere and there is no handle to keep: hand one to ThermalCamera.SetCustomPalette(…) and that camera colorizes with it until it is given another or told to go back to a built-in. Two cameras can be using two different ones at once.

It is saved and restored with the camera's configuration, and the colours themselves go into the file rather than a reference to them -- so a program that reads the file back draws the right picture whether or not it has ever seen this palette before.

CustomPalette: properties

public ReadOnlyMemory<Rgb24> Colors { get; init; }

The colours, coldest first. Exactly Palettes.ColorCount of them.

public string Name { get; init; }

What to call it, for a legend caption and for the saved configuration. Must not be empty. It is not an identifier and is never matched against anything.