Enum Class VipsBlendMode
- All Implemented Interfaces:
VEnum
,VNamedEnum
,Serializable
,Comparable<VipsBlendMode>
,Constable
The various Porter-Duff and PDF blend modes. See VImage.composite(java.util.List<app.photofox.vipsffm.VImage>, java.util.List<java.lang.Integer>, app.photofox.vipsffm.VipsOption...)
,
for example.
The Cairo docs have a nice explanation of all the blend modes:
https://www.cairographics.org/operators
The non-separable modes are not implemented.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiona bit like adding the two imagesthis leaves the first object mostly intact, but mixes both objects in the overlapping areawhere the second object is drawn, the first is removeddarken first by a factor of secondbrighten first by a factor secondthe darker of each componentleaves the first object untouched, the second is discarded completelylike ATOP, but swaps the argumentslike IN, but swaps the argumentslike OUT, but swaps the argumentslike OVER, but swaps the argumentsdifference of the twosomewhat like DIFFERENCE, but lower-contrastmultiply or screen, depending on lightnessthe first object is removed completely, the second is only drawn where the first wasthe lighter of each componentat least as dark as the darker of the two inputsthe second is drawn only where the first isn'tthe image shows what you would expect if you held two semi-transparent slides on top of each othermultiplies or screens colors, depending on the lightnessa bit like the darker of the twoat least as light as the lighter of the inputsdarken or lighten, depending on lightnessthe second object is drawn as if nothing were belowsomething like a difference operator -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
int
static VipsBlendMode
Returns the enum constant of this class with the specified name.static VipsBlendMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLEND_MODE_CLEAR
where the second object is drawn, the first is removed
-
BLEND_MODE_SOURCE
the second object is drawn as if nothing were below
-
BLEND_MODE_OVER
the image shows what you would expect if you held two semi-transparent slides on top of each other
-
BLEND_MODE_IN
the first object is removed completely, the second is only drawn where the first was
-
BLEND_MODE_OUT
the second is drawn only where the first isn't
-
BLEND_MODE_ATOP
this leaves the first object mostly intact, but mixes both objects in the overlapping area
-
BLEND_MODE_DEST
leaves the first object untouched, the second is discarded completely
-
BLEND_MODE_DEST_OVER
like OVER, but swaps the arguments
-
BLEND_MODE_DEST_IN
like IN, but swaps the arguments
-
BLEND_MODE_DEST_OUT
like OUT, but swaps the arguments
-
BLEND_MODE_DEST_ATOP
like ATOP, but swaps the arguments
-
BLEND_MODE_XOR
something like a difference operator
-
BLEND_MODE_ADD
a bit like adding the two images
-
BLEND_MODE_SATURATE
a bit like the darker of the two
-
BLEND_MODE_MULTIPLY
at least as dark as the darker of the two inputs
-
BLEND_MODE_SCREEN
at least as light as the lighter of the inputs
-
BLEND_MODE_OVERLAY
multiplies or screens colors, depending on the lightness
-
BLEND_MODE_DARKEN
the darker of each component
-
BLEND_MODE_LIGHTEN
the lighter of each component
-
BLEND_MODE_COLOUR_DODGE
brighten first by a factor second
-
BLEND_MODE_COLOUR_BURN
darken first by a factor of second
-
BLEND_MODE_HARD_LIGHT
multiply or screen, depending on lightness
-
BLEND_MODE_SOFT_LIGHT
darken or lighten, depending on lightness
-
BLEND_MODE_DIFFERENCE
difference of the two
-
BLEND_MODE_EXCLUSION
somewhat like DIFFERENCE, but lower-contrast
-
BLEND_MODE_LAST
-
-
Field Details
-
parentName
- See Also:
-
-
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
-
getName
- Specified by:
getName
in interfaceVNamedEnum
-
getNickname
- Specified by:
getNickname
in interfaceVNamedEnum
-
getRawValue
public int getRawValue()- Specified by:
getRawValue
in interfaceVEnum
-