Skia
2D Graphics Library
SkCoverageMode.h File Reference
Include dependency graph for SkCoverageMode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  SkCoverageMode {
  SkCoverageMode::kUnion, SkCoverageMode::kIntersect, SkCoverageMode::kDifference, SkCoverageMode::kReverseDifference,
  SkCoverageMode::kXor, SkCoverageMode::kLast = kXor
}
 Describes geometric operations (ala SkRegion::Op) that can be applied to coverage bytes. More...
 

Enumeration Type Documentation

◆ SkCoverageMode

enum SkCoverageMode
strong

Describes geometric operations (ala SkRegion::Op) that can be applied to coverage bytes.

These can be thought of as variants of porter-duff (SkBlendMode) modes, but only applied to the alpha channel.

See SkMaskFilter for ways to use these when combining two different masks.

Enumerator
kUnion 
kIntersect 
kDifference 
kReverseDifference 
kXor 
kLast