Skia
2D Graphics Library
SkCoverageMode.h File Reference

Go to the source code of this file.

Enumerations

enum class  SkCoverageMode {
  kUnion , kIntersect , kDifference , kReverseDifference ,
  kXor , 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