Skia
2D Graphics Library
SkColorMatrixFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright 2007 The Android Open Source Project
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 SkColorMatrixFilter_DEFINED
9 #define SkColorMatrixFilter_DEFINED
10 
12 
13 // (DEPRECATED) This factory function is deprecated. Please use the one in
14 // SkColorFilters (i.e., Lighting).
15 class SK_API SkColorMatrixFilter : public SkColorFilter {
16 public:
18  return SkColorFilters::Lighting(mul, add);
19  }
20 };
21 
22 #endif
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:35
static sk_sp< SkColorFilter > Lighting(SkColor mul, SkColor add)
Create a colorfilter that multiplies the RGB channels by one color, and then adds a second color,...
Definition: SkColorMatrixFilter.h:15
static sk_sp< SkColorFilter > MakeLightingFilter(SkColor mul, SkColor add)
Definition: SkColorMatrixFilter.h:17