enum HarfBuzz::PaintCompositeModeT

Overview

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.

Defined in:

lib/gi-crystal/src/auto/harf_buzz-0.0/harf_buzz.cr

Enum Members

Clear = 0_u32

clear destination layer (bounded)

Src = 1_u32

replace destination layer (bounded)

Dest = 2_u32

ignore the source

SrcOver = 3_u32

draw source layer on top of destination layer (bounded)

DestOver = 4_u32

draw destination on top of source

SrcIn = 5_u32

draw source where there was destination content (unbounded)

DestIn = 6_u32

leave destination only where there was source content (unbounded)

SrcOut = 7_u32

draw source where there was no destination content (unbounded)

DestOut = 8_u32

leave destination only where there was no source content

SrcAtop = 9_u32

draw source on top of destination content and only there

DestAtop = 10_u32

leave destination on top of source content and only there (unbounded)

Xor = 11_u32

source and destination are shown where there is only one of them

Plus = 12_u32

source and destination layers are accumulated

Screen = 13_u32

source and destination are complemented and multiplied. This causes the result to be at least as light as the lighter inputs.

Overlay = 14_u32

multiplies or screens, depending on the lightness of the destination color.

Darken = 15_u32

replaces the destination with the source if it is darker, otherwise keeps the source.

Lighten = 16_u32

replaces the destination with the source if it is lighter, otherwise keeps the source.

ColorDodge = 17_u32

brightens the destination color to reflect the source color.

ColorBurn = 18_u32

darkens the destination color to reflect the source color.

HardLight = 19_u32

Multiplies or screens, dependent on source color.

SoftLight = 20_u32

Darkens or lightens, dependent on source color.

Difference = 21_u32

Takes the difference of the source and destination color.

Exclusion = 22_u32

Produces an effect similar to difference, but with lower contrast.

Multiply = 23_u32

source and destination layers are multiplied. This causes the result to be at least as dark as the darker inputs.

HslHue = 24_u32

Creates a color with the hue of the source and the saturation and luminosity of the target.

HslSaturation = 25_u32

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.

HslColor = 26_u32

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.

HslLuminosity = 27_u32

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.

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Instance Method Detail

def clear? #

def color_burn? #

def color_dodge? #

def darken? #

def dest? #

def dest_atop? #

def dest_in? #

def dest_out? #

def dest_over? #

def difference? #

def exclusion? #

def hard_light? #

def hsl_color? #

def hsl_hue? #

def hsl_luminosity? #

def hsl_saturation? #

def lighten? #

def multiply? #

def overlay? #

def plus? #

def screen? #

def soft_light? #

def src? #

def src_atop? #

def src_in? #

def src_out? #

def src_over? #

def xor? #