Skia
2D Graphics Library
SkCoverageMode.h
Go to the documentation of this file.
1
/*
2
* Copyright 2018 Google Inc.
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 SkCoverageMode_DEFINED
9
#define SkCoverageMode_DEFINED
10
18
enum class
SkCoverageMode
{
19
kUnion
,
// A ∪ B A+B-A*B
20
kIntersect
,
// A ∩ B A*B
21
kDifference
,
// A - B A*(1-B)
22
kReverseDifference
,
// B - A B*(1-A)
23
kXor
,
// A ⊕ B A+B-2*A*B
24
25
kLast
=
kXor
,
26
};
27
28
#endif
SkBlendMode::kXor
@ kXor
r = s*(1-da) + d*(1-sa)
SkCoverageMode
SkCoverageMode
Describes geometric operations (ala SkRegion::Op) that can be applied to coverage bytes.
Definition:
SkCoverageMode.h:18
SkCoverageMode::kReverseDifference
@ kReverseDifference
SkCoverageMode::kUnion
@ kUnion
SkCoverageMode::kLast
@ kLast
SkCoverageMode::kIntersect
@ kIntersect
SkCoverageMode::kDifference
@ kDifference
include
core
SkCoverageMode.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023