Table of Contents

Class ColorTable

Namespace
FellowOakDicom.Imaging
Assembly
fo-dicom.core.dll

Convenience class for managing color look-up tables with 256 color items.

public static class ColorTable
Inheritance
ColorTable
Inherited Members

Fields

Monochrome1

Look-up table representing MONOCHROME1 grayscale scheme.

public static readonly Color32[] Monochrome1

Field Value

Color32[]

Monochrome2

Look-up table representing MONOCHROME2 grayscale scheme.

public static readonly Color32[] Monochrome2

Field Value

Color32[]

Methods

LoadLUT(string)

Load color look-up table from file.

public static Color32[] LoadLUT(string path)

Parameters

path string

File name.

Returns

Color32[]

Loaded color look-up table.

Reverse(Color32[])

Returns the reverse of an existing color table.

public static Color32[] Reverse(Color32[] lut)

Parameters

lut Color32[]

Look-up table subject to reversal.

Returns

Color32[]

Reversed look-up table.

SaveLUT(string, Color32[])

Save color look-up table to file.

public static void SaveLUT(string path, Color32[] lut)

Parameters

path string

File name.

lut Color32[]

Look-up table to save.