paint_composite_mode_t
Added in version 7.0.0.
- class paint_composite_mode_t
The values of this enumeration describe the compositing modes that can be used when combining temporary redirected drawing with the backdrop.
See the OpenType spec COLR section for details.
Fields
- class paint_composite_mode_t
- CLEAR
Clear destination layer (bounded)
- COLOR_BURN
Darkens the destination color to reflect the source color.
- COLOR_DODGE
Brightens the destination color to reflect the source color.
- DARKEN
Replaces the destination with the source if it is darker, otherwise keeps the source.
- DEST
Ignore the source
- DEST_ATOP
Leave destination on top of source content and only there (unbounded)
- DEST_IN
Leave destination only where there was source content (unbounded)
- DEST_OUT
Leave destination only where there was no source content
- DEST_OVER
Draw destination on top of source
- DIFFERENCE
Takes the difference of the source and destination color.
- EXCLUSION
Produces an effect similar to difference, but with lower contrast.
- HARD_LIGHT
Multiplies or screens, dependent on source color.
- HSL_COLOR
Creates a color with the hue and saturation of the source and the luminosity of the target. This preserves the gray levels of the target and is useful for coloring monochrome images or tinting color images.
- HSL_HUE
Creates a color with the hue of the source and the saturation and luminosity of the target.
- HSL_LUMINOSITY
Creates a color with the luminosity of the source and the hue and saturation of the target. This produces an inverse effect to
HB_PAINT_COMPOSITE_MODE_HSL_COLOR
.
- HSL_SATURATION
Creates a color with the saturation of the source and the hue and luminosity of the target. Painting with this mode onto a gray area produces no change.
- LIGHTEN
Replaces the destination with the source if it is lighter, otherwise keeps the source.
- MULTIPLY
Source and destination layers are multiplied. This causes the result to be at least as dark as the darker inputs.
- OVERLAY
Multiplies or screens, depending on the lightness of the destination color.
- PLUS
Source and destination layers are accumulated
- SCREEN
Source and destination are complemented and multiplied. This causes the result to be at least as light as the lighter inputs.
- SOFT_LIGHT
Darkens or lightens, dependent on source color.
- SRC
Replace destination layer (bounded)
- SRC_ATOP
Draw source on top of destination content and only there
- SRC_IN
Draw source where there was destination content (unbounded)
- SRC_OUT
Draw source where there was no destination content (unbounded)
- SRC_OVER
Draw source layer on top of destination layer (bounded)
- XOR
Source and destination are shown where there is only one of them