DicomObjects.NET10 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 String _
    ) As IList(Of SKColor)
    'Usage
     
    
    Dim Name As String
    Dim value As IList(Of SKColor)
     
    value = ColourPalettes.FromName(Name)
    public static IList<SKColor> FromName( 
       string Name
    )
    public:
    static IList<SKColor>^ FromName( 
       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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also