Skia
2D Graphics Library
SkColorMatrix Class Reference

#include <SkColorMatrix.h>

Public Member Functions

constexpr SkColorMatrix ()
 
constexpr SkColorMatrix (float m00, float m01, float m02, float m03, float m04, float m10, float m11, float m12, float m13, float m14, float m20, float m21, float m22, float m23, float m24, float m30, float m31, float m32, float m33, float m34)
 
void setIdentity ()
 
void setScale (float rScale, float gScale, float bScale, float aScale=1.0f)
 
void postTranslate (float dr, float dg, float db, float da)
 
void setConcat (const SkColorMatrix &a, const SkColorMatrix &b)
 
void preConcat (const SkColorMatrix &mat)
 
void postConcat (const SkColorMatrix &mat)
 
void setSaturation (float sat)
 
void setRowMajor (const float src[20])
 
void getRowMajor (float dst[20]) const
 

Static Public Member Functions

static SkColorMatrix RGBtoYUV (SkYUVColorSpace)
 
static SkColorMatrix YUVtoRGB (SkYUVColorSpace)
 

Friends

class SkColorFilters
 

Constructor & Destructor Documentation

◆ SkColorMatrix() [1/2]

constexpr SkColorMatrix::SkColorMatrix ( )
inlineconstexpr

◆ SkColorMatrix() [2/2]

constexpr SkColorMatrix::SkColorMatrix ( float  m00,
float  m01,
float  m02,
float  m03,
float  m04,
float  m10,
float  m11,
float  m12,
float  m13,
float  m14,
float  m20,
float  m21,
float  m22,
float  m23,
float  m24,
float  m30,
float  m31,
float  m32,
float  m33,
float  m34 
)
inlineconstexpr

Member Function Documentation

◆ getRowMajor()

void SkColorMatrix::getRowMajor ( float  dst[20]) const
inline

◆ postConcat()

void SkColorMatrix::postConcat ( const SkColorMatrix mat)
inline

◆ postTranslate()

void SkColorMatrix::postTranslate ( float  dr,
float  dg,
float  db,
float  da 
)

◆ preConcat()

void SkColorMatrix::preConcat ( const SkColorMatrix mat)
inline

◆ RGBtoYUV()

static SkColorMatrix SkColorMatrix::RGBtoYUV ( SkYUVColorSpace  )
static

◆ setConcat()

void SkColorMatrix::setConcat ( const SkColorMatrix a,
const SkColorMatrix b 
)

◆ setIdentity()

void SkColorMatrix::setIdentity ( )

◆ setRowMajor()

void SkColorMatrix::setRowMajor ( const float  src[20])
inline

◆ setSaturation()

void SkColorMatrix::setSaturation ( float  sat)

◆ setScale()

void SkColorMatrix::setScale ( float  rScale,
float  gScale,
float  bScale,
float  aScale = 1.0f 
)

◆ YUVtoRGB()

static SkColorMatrix SkColorMatrix::YUVtoRGB ( SkYUVColorSpace  )
static

Friends And Related Function Documentation

◆ SkColorFilters

friend class SkColorFilters
friend

The documentation for this class was generated from the following file: