Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkColorSpacePrimaries Struct Reference

#include <SkColorSpace.h>

Public Member Functions

bool toXYZD50 (skcms_Matrix3x3 *toXYZD50) const
 

Public Attributes

float fRX
 
float fRY
 
float fGX
 
float fGY
 
float fBX
 
float fBY
 
float fWX
 
float fWY
 

Detailed Description

Describes a color gamut with primaries and a white point.

Definition at line 25 of file SkColorSpace.h.

Member Function Documentation

◆ toXYZD50()

bool SkColorSpacePrimaries::toXYZD50 ( skcms_Matrix3x3 toXYZD50) const

Convert primaries and a white point to a toXYZD50 matrix, the preferred color gamut representation of SkColorSpace.

Definition at line 18 of file SkColorSpace.cpp.

18 {
19 return skcms_PrimariesToXYZD50(fRX, fRY, fGX, fGY, fBX, fBY, fWX, fWY, toXYZ_D50);
20}
bool skcms_PrimariesToXYZD50(float rx, float ry, float gx, float gy, float bx, float by, float wx, float wy, skcms_Matrix3x3 *toXYZD50)
Definition: skcms.cc:1747

Member Data Documentation

◆ fBX

float SkColorSpacePrimaries::fBX

Definition at line 30 of file SkColorSpace.h.

◆ fBY

float SkColorSpacePrimaries::fBY

Definition at line 31 of file SkColorSpace.h.

◆ fGX

float SkColorSpacePrimaries::fGX

Definition at line 28 of file SkColorSpace.h.

◆ fGY

float SkColorSpacePrimaries::fGY

Definition at line 29 of file SkColorSpace.h.

◆ fRX

float SkColorSpacePrimaries::fRX

Definition at line 26 of file SkColorSpace.h.

◆ fRY

float SkColorSpacePrimaries::fRY

Definition at line 27 of file SkColorSpace.h.

◆ fWX

float SkColorSpacePrimaries::fWX

Definition at line 32 of file SkColorSpace.h.

◆ fWY

float SkColorSpacePrimaries::fWY

Definition at line 33 of file SkColorSpace.h.


The documentation for this struct was generated from the following files: