Package org.freedesktop.harfbuzz
Enum Class PaintCompositeMode
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<PaintCompositeMode>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum PaintCompositeMode
extends Enum<PaintCompositeMode>
implements Enumeration
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionclear destination layer (bounded)darkens the destination color to reflect the source color.brightens the destination color to reflect the source color.replaces the destination with the source if it is darker, otherwise keeps the source.ignore the sourceleave destination on top of source content and only there (unbounded)leave destination only where there was source content (unbounded)leave destination only where there was no source contentdraw destination on top of sourceTakes the difference of the source and destination color.Produces an effect similar to difference, but with lower contrast.Multiplies or screens, dependent on source color.Creates a color with the hue and saturation of the source and the luminosity of the target.Creates a color with the hue of the source and the saturation and luminosity of the target.Creates a color with the luminosity of the source and the hue and saturation of the target.Creates a color with the saturation of the source and the hue and luminosity of the target.replaces the destination with the source if it is lighter, otherwise keeps the source.source and destination layers are multiplied.multiplies or screens, depending on the lightness of the destination color.source and destination layers are accumulatedsource and destination are complemented and multiplied.Darkens or lightens, dependent on source color.replace destination layer (bounded)draw source on top of destination content and only theredraw source where there was destination content (unbounded)draw source where there was no destination content (unbounded)draw source layer on top of destination layer (bounded)source and destination are shown where there is only one of them -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the PaintCompositeMode classint
getValue()
Get the numeric value of this enumstatic PaintCompositeMode
of
(int value) Create a new PaintCompositeMode for the provided valuestatic PaintCompositeMode
Returns the enum constant of this class with the specified name.static PaintCompositeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLEAR
clear destination layer (bounded) -
SRC
replace destination layer (bounded) -
DEST
ignore the source -
SRC_OVER
draw source layer on top of destination layer (bounded) -
DEST_OVER
draw destination on top of source -
SRC_IN
draw source where there was destination content (unbounded) -
DEST_IN
leave destination only where there was source content (unbounded) -
SRC_OUT
draw source where there was no destination content (unbounded) -
DEST_OUT
leave destination only where there was no source content -
SRC_ATOP
draw source on top of destination content and only there -
DEST_ATOP
leave destination on top of source content and only there (unbounded) -
XOR
source and destination are shown where there is only one of them -
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. -
OVERLAY
multiplies or screens, depending on the lightness of the destination color. -
DARKEN
replaces the destination with the source if it is darker, otherwise keeps the source. -
LIGHTEN
replaces the destination with the source if it is lighter, otherwise keeps the source. -
COLOR_DODGE
brightens the destination color to reflect the source color. -
COLOR_BURN
darkens the destination color to reflect the source color. -
HARD_LIGHT
Multiplies or screens, dependent on source color. -
SOFT_LIGHT
Darkens or lightens, dependent on source color. -
DIFFERENCE
Takes the difference of the source and destination color. -
EXCLUSION
Produces an effect similar to difference, but with lower contrast. -
MULTIPLY
source and destination layers are multiplied. This causes the result to be at least as dark as the darker inputs. -
HSL_HUE
Creates a color with the hue of the source and the saturation and luminosity of the target. -
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. -
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_LUMINOSITY
Creates a color with the luminosity of the source and the hue and saturation of the target. This produces an inverse effect toHBPAINTCOMPOSITEMODEHSLCOLOR
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new PaintCompositeMode for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-