Class IlluminantExtensions
Extensions for the Illuminant enum
Inherited Members
Namespace: NixUniversalSDK
Assembly: NixUniversalSDK.dll
Syntax
public static class IlluminantExtensions
Methods
GetFullName(Illuminant)
Full name for display in UI (e.g. - 'D50' for D50)
Declaration
public static string GetFullName(this Illuminant illuminant)
Parameters
Type | Name | Description |
---|---|---|
Illuminant | illuminant |
Returns
Type | Description |
---|---|
string |
GetIlluminant(byte)
Helper to provide the Illuminant enum for a particular byte value. If an invalid value is provided, None is returned.
Declaration
public static Illuminant GetIlluminant(this byte value)
Parameters
Type | Name | Description |
---|---|---|
byte | value | Byte value of the given illuminant |
Returns
Type | Description |
---|---|
Illuminant | Illuminant enum corresponding to the provided byte |
GetIlluminant(string)
Helper to provide the Illuminant enum for a particular illuminant name. If an invalid name is provided, None is returned.
Declaration
public static Illuminant GetIlluminant(this string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Full name of the given illuminant |
Returns
Type | Description |
---|---|
Illuminant | Illuminant enum corresponding to the provided name |