DicomObjects.NET.8.48 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 System.String _
    ) As System.Collections.Generic.IList(Of Color)
    public static System.Collections.Generic.IList<Color> FromUID( 
       System.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: .NET CLR 4.8 or higher

    See Also