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

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)
    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
    Example
    using DicomObjects;
                        
    var palette = ColourPalettes.FromName("HOT_IRON");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also