Flutter Engine
The Flutter Engine
Classes | Macros | Functions
colormatrix.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkImage.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkColorMatrix.h"
#include "include/effects/SkGradientShader.h"

Go to the source code of this file.

Classes

class  ColorMatrixGM
 

Macros

#define WIDTH   500
 
#define HEIGHT   160
 

Functions

static void set_color_matrix (SkPaint *paint, const SkColorMatrix &matrix)
 
static void set_array (SkPaint *paint, const float array[])
 

Macro Definition Documentation

◆ HEIGHT

#define HEIGHT   160

Definition at line 29 of file colormatrix.cpp.

◆ WIDTH

#define WIDTH   500

Definition at line 28 of file colormatrix.cpp.

Function Documentation

◆ set_array()

static void set_array ( SkPaint paint,
const float  array[] 
)
static

Definition at line 35 of file colormatrix.cpp.

35 {
36 paint->setColorFilter(SkColorFilters::Matrix(array));
37}
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
const Paint & paint
Definition: color_source.cc:38

◆ set_color_matrix()

static void set_color_matrix ( SkPaint paint,
const SkColorMatrix matrix 
)
static

Definition at line 31 of file colormatrix.cpp.

31 {
32 paint->setColorFilter(SkColorFilters::Matrix(matrix));
33}
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258