Show / Hide Table of Contents

# Class IlluminantExtensions

Extensions for the Illuminant enum

##### Inheritance

object
IlluminantExtensions

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### 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