DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / GetColourTable Method
Example

In This Topic
    GetColourTable Method
    In This Topic
    The colour lookup table of DicomImage
    Syntax
    'Declaration
     
    
    Public Function GetColourTable() As System.Collections.Generic.IList(Of Color)
    public System.Collections.Generic.IList<Color> GetColourTable()

    Return Value

    List of System.Drawing.Color values
    Remarks
    This property enables developers to define and apply their own color table to Images. To modify the colour table, use ColourTable or SetColourTable.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    var colourTable = image.GetColourTable(); 
     
    Example output:
    // colourTable[0] = "{Name=Black, ARGB=(255, 0, 0, 0)}" 
    // colourTable[1] = "{Name=DarkBlue, ARGB=(255, 0, 0, 139)} 
    // colourTable[2] = "{Name=Blue, ARGB=(255, 0, 0, 255)}"
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also