DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / ColourPalettes Class / FromName Method
The name which identifies the palette






    FromName Method
    Return a well-known-instance colour palette, from its official DICOM Name
    Syntax
    'Declaration
     
    
    Public Shared Function FromName( _
       ByVal Name As System.String _
    ) As System.Collections.Generic.IList(Of Color)
     
    'Usage
     
    
    Dim Name As System.String
    Dim value As System.Collections.Generic.IList(Of Color)
     
    value = ColourPalettes.FromName(Name)

    Parameters

    Name
    The name which identifies the palette

    Return Value

    A 256 colour palette
    Remarks
    The supported names are
    • HOT_IRON
    • PET
    • HOT_METAL_BLUE
    • PET_20_STEP
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also