#include <SkBlenders.h>
|
static sk_sp< SkBlender > | Arithmetic (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...
|
|
◆ 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,k4 | The four coefficients. |
enforcePMColor | If true, the RGB channels will be clamped to the calculated alpha. |
The documentation for this class was generated from the following file: