Class ColorTable
Convenience class for managing color look-up tables with 256 color items.
Inherited Members
Namespace: Dicom.Imaging
Assembly: cs.temp.dll.dll
Syntax
public static class ColorTable
Fields
Monochrome1
Look-up table representing MONOCHROME1 grayscale scheme.
Declaration
public static readonly Color32[] Monochrome1
Field Value
Type | Description |
---|---|
Color32[] |
Monochrome2
Look-up table representing MONOCHROME2 grayscale scheme.
Declaration
public static readonly Color32[] Monochrome2
Field Value
Type | Description |
---|---|
Color32[] |
Methods
LoadLUT(String)
Load color look-up table from file.
Declaration
public static Color32[] LoadLUT(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | File name. |
Returns
Type | Description |
---|---|
Color32[] | Loaded color look-up table. |
Reverse(Color32[])
Returns the reverse of an existing color table.
Declaration
public static Color32[] Reverse(Color32[] lut)
Parameters
Type | Name | Description |
---|---|---|
Color32[] | lut | Look-up table subject to reversal. |
Returns
Type | Description |
---|---|
Color32[] | Reversed look-up table. |
SaveLUT(String, Color32[])
Save color look-up table to file.
Declaration
public static void SaveLUT(string path, Color32[] lut)
Parameters
Type | Name | Description |
---|---|---|
String | path | File name. |
Color32[] | lut | Look-up table to save. |