DicomObjects.NET10 Documentation
DicomObjects Namespace / ColourPalettes Class / FromUID Method
The UID which identifies the palette
Example



In This Topic
    FromUID Method
    In This Topic
    Return a well-known-instance colour palette, from its official DICOM UID
    Syntax
    'Declaration
     
    
    Public Shared Function FromUID( _
       ByVal UID As String _
    ) As IList(Of SKColor)
    'Usage
     
    
    Dim UID As String
    Dim value As IList(Of SKColor)
     
    value = ColourPalettes.FromUID(UID)
    public static IList<SKColor> FromUID( 
       string UID
    )
    public:
    static IList<SKColor>^ FromUID( 
       String^ UID
    ) 

    Parameters

    UID
    The UID which identifies the palette

    Return Value

    A 256 colour palette
    Remarks
    The UIDs as of the form: 1.2.840.10008.1.5.X
    Example
    using DicomObjects;
    using DicomObjects.DicomUIDs;
     
       var uid = WellKnownInstances.HotIronColorPaletteSOPInstance.Value;
       var palette = ColourPalettes.FromUID(uid);
    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