Skia
2D Graphics Library
SkBlenders Class Reference

#include <SkBlenders.h>

Static Public Member Functions

static sk_sp< SkBlenderArithmetic (float k1, float k2, float k3, float k4, bool enforcePremul)
 Create a blender that implements the following: k1 * src * dst + k2 * src + k3 * dst + k4. More...
 

Member Function Documentation

◆ Arithmetic()

static sk_sp<SkBlender> SkBlenders::Arithmetic ( float  k1,
float  k2,
float  k3,
float  k4,
bool  enforcePremul 
)
static

Create a blender that implements the following: k1 * src * dst + k2 * src + k3 * dst + k4.

Parameters
k1,k2,k3,k4The four coefficients.
enforcePMColorIf true, the RGB channels will be clamped to the calculated alpha.

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