Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class ColorTable

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

    Inheritance
    System.Object
    ColorTable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FellowOakDicom.Imaging
    Assembly: fo-dicom.core.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
    System.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
    System.String path

    File name.

    Color32[] lut

    Look-up table to save.

    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors