Edit

Share via


SKColorSpacePrimaries Struct

Definition

Describes a color gamut with primaries and a white point.

public struct SKColorSpacePrimaries : IEquatable<SkiaSharp.SKColorSpacePrimaries>
Inheritance
SKColorSpacePrimaries
Implements

Constructors

Name Description
SKColorSpacePrimaries(Single, Single, Single, Single, Single, Single, Single, Single)

Initializes a new instance of the SKColorSpacePrimaries structure with the specified coordinates.

SKColorSpacePrimaries(Single[])

Initializes a new instance of the SKColorSpacePrimaries structure with the specified values.

Fields

Name Description
Empty

Represents an empty SKColorSpacePrimaries with all values set to zero.

Properties

Name Description
BX

Gets or sets the blue X-coordinate.

BY

Gets or sets the blue Y-coordinate.

GX

Gets or sets the green X-coordinate.

GY

Gets or sets the green Y-coordinate.

RX

Gets or sets the red X-coordinate.

RY

Gets or sets the red Y-coordinate.

Values

Gets the values of the primaries and white point as an array with the form [RX, RY, GX, GY, BX, BY, WX, WY].

WX

Gets or sets the white X-coordinate.

WY

Gets or sets the white Y-coordinate.

Methods

Name Description
Equals(Object)

Determines whether the specified object is equal to the current instance.

Equals(SKColorSpacePrimaries)

Determines whether the specified SKColorSpacePrimaries is equal to the current instance.

GetHashCode()

Returns the hash code for this instance.

ToColorSpaceXyz()

Converts the primaries and white point to an SKColorSpaceXyz matrix.

ToColorSpaceXyz(SKColorSpaceXyz)

Attempts to convert the primaries and white point to an SKColorSpaceXyz matrix.

ToXyzD50()
Obsolete.

Converts primaries and a white point to a XYZ D50 matrix, the preferred color gamut representation of SKColorSpace.

ToXyzD50(SKMatrix44)
Obsolete.

Converts primaries and a white point to a XYZ D50 matrix, the preferred color gamut representation of SKColorSpace.

Operators

Name Description
Equality(SKColorSpacePrimaries, SKColorSpacePrimaries)

Determines whether two SKColorSpacePrimaries instances are equal.

Inequality(SKColorSpacePrimaries, SKColorSpacePrimaries)

Determines whether two SKColorSpacePrimaries instances are not equal.

Applies to