Skia
2D Graphics Library
SkBlenders.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkBlenders_DEFINED
9 #define SkBlenders_DEFINED
10 
11 #include "include/core/SkBlender.h"
12 
13 class SK_API SkBlenders {
14 public:
21  static sk_sp<SkBlender> Arithmetic(float k1, float k2, float k3, float k4, bool enforcePremul);
22 
23 private:
24  SkBlenders() = delete;
25 };
26 
27 #endif
Definition: SkBlenders.h:13
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.