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






In This Topic
    FromName Method
    In This Topic
    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)
    public static System.Collections.Generic.IList<Color> FromName( 
       System.string Name
    )
    public function FromName( 
        Name: System.String
    ): System.Collections.Generic.IList; static; 
    public static function FromName( 
       Name : System.String
    ) : System.Collections.Generic.IList;
    public: static System.Collections.Generic.IList<Color>* FromName( 
       System.string* Name
    ) 
    public:
    static System.Collections.Generic.IList<Color>^ FromName( 
       System.String^ 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