Show / Hide Table of Contents

# Class ReferenceWhiteExtensions

Extensions for the ReferenceWhite enum.

##### Inheritance

object
ReferenceWhiteExtensions

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

### Methods

#### GetFullName(ReferenceWhite)

Full name for display in UI (e.g. - 'D50/2°' for D50_2)

##### Declaration

    public static string GetFullName(this ReferenceWhite reference)

##### Parameters

Type | Name | Description
--- | --- | ---
ReferenceWhite | reference |

##### Returns

Type | Description
--- | ---
string |

#### GetIlluminant(ReferenceWhite)

Illuminant for the selected reference white

##### Declaration

    public static Illuminant GetIlluminant(this ReferenceWhite reference)

##### Parameters

Type | Name | Description
--- | --- | ---
ReferenceWhite | reference |

##### Returns

Type | Description
--- | ---
Illuminant |

#### GetObserver(ReferenceWhite)

Observer for the selected reference white

##### Declaration

    public static Observer GetObserver(this ReferenceWhite reference)

##### Parameters

Type | Name | Description
--- | --- | ---
ReferenceWhite | reference |

##### Returns

Type | Description
--- | ---
Observer |

#### GetReferenceWhite(ushort)

Helper to provide the ReferenceWhite enum for a particular reference ID. If an invalid ID is provided, Empty is returned.

##### Declaration

    public static ReferenceWhite GetReferenceWhite(this ushort value)

##### Parameters

Type | Name | Description
--- | --- | ---
ushort | value | Integer value of the reference

##### Returns

Type | Description
--- | ---
ReferenceWhite | ReferenceWhite enum value corresponding to the provided ID

#### GetXYZ(ReferenceWhite)

CIEXYZ value for the selected reference white point

##### Declaration

    public static double[] GetXYZ(this ReferenceWhite reference)

##### Parameters

Type | Name | Description
--- | --- | ---
ReferenceWhite | reference |

##### Returns

Type | Description
--- | ---
double[] |

#### Select(Illuminant, Observer)

Helper to provide the ReferenceWhite enum for a combination of Illuminant and Observer.

##### Declaration

    public static ReferenceWhite Select(Illuminant illuminant, Observer observer)

##### Parameters

Type | Name | Description
--- | --- | ---
Illuminant | illuminant | Selected illuminant
Observer | observer | Selected observer

##### Returns

Type | Description
--- | ---
ReferenceWhite | ReferenceWhite enum value corresponding to the provided illuminant and observer