Click or drag to resize
PaletteManagerOpen Method
Open a palette file from disk. Palette files have .pal as file extension.

Namespace: Flir.Atlas.Image.Palettes
Assembly: Flir.Atlas.Image (in Flir.Atlas.Image.dll) Version: 3.1
Syntax
C#
public static Palette Open(
	string fileName
)

Parameters

fileName
Type: SystemString
Full path to a valid palette file.

Return Value

Type: Palette
Palette containing colors from the palette file.
Exceptions
Examples
C#
OpenFileDialog dlg = new OpenFileDialog();
dlg.ShowDialog();
ThermalImageFile image = new ThermalImageFile(@"path to image");
Palette pal = PaletteManager.Open(dlg.FileName);
image.Palette = pal;
See Also