Enum BlendMode
- java.lang.Object
-
- java.lang.Enum<BlendMode>
-
- com.pdftools.toolbox.pdf.content.BlendMode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLOR
Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.COLOR_BURN
Darkens the backdrop color to reflect the source color.COLOR_DODGE
Brightens the backdrop color to reflect the source color.DARKEN
Selects the darker of the backdrop and source colors.DIFFERENCE
Subtracts the darker of the two constituent colors from the lighter color.EXCLUSION
Produces an effect similar to that of the Difference mode but lower in contrast.HARD_LIGHT
Multiplies or screens the colors, depending on the source color value.HUE
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.LIGHTEN
Selects the lighter of the backdrop and source colors.LUMINOSITY
Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.MULTIPLY
Multiplies the backdrop and source color valuesNORMAL
Selects the source color, ignoring the backdrop.OVERLAY
Multiplies or screens the colors, depending on the backdrop color value.SATURATION
Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.SCREEN
Multiplies the complements of the backdrop and source color values, then complements the result.SOFT_LIGHT
Darkens or lightens the colors, depending on the source color value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlendMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BlendMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final BlendMode NORMAL
Selects the source color, ignoring the backdrop.
-
MULTIPLY
public static final BlendMode MULTIPLY
Multiplies the backdrop and source color values
The result color is always at least as dark as either of the two constituent colors.
When working with additive colors, multiplying any color with black produces black while multiplying with white leaves the original color unchanged.
For subtractive colors, the maximum tint value used for all colorants of the color space acts as black does for additive spaces.
Painting successive overlapping objects with a color other than black or white produces progressively darker colors.
-
SCREEN
public static final BlendMode SCREEN
Multiplies the complements of the backdrop and source color values, then complements the result.
The result color is always at least as light as either of the two constituent colors.
When working with additive colors, screening any color with white produces white while screening with black leaves the original color unchanged.
For subtractive colors, the maximum tint value of all colorants of the color space acts as black does for additive spaces.
The effect is similar to projecting multiple photographic slides simultaneously onto a single screen.
-
DARKEN
public static final BlendMode DARKEN
Selects the darker of the backdrop and source colors.
The backdrop is replaced with the source where the source is darker; otherwise, it is left unchanged.
-
LIGHTEN
public static final BlendMode LIGHTEN
Selects the lighter of the backdrop and source colors.
The backdrop is replaced with the source where the source is lighter; otherwise, it is left unchanged.
-
COLOR_DODGE
public static final BlendMode COLOR_DODGE
Brightens the backdrop color to reflect the source color.
Painting with black produces no change.
-
COLOR_BURN
public static final BlendMode COLOR_BURN
Darkens the backdrop color to reflect the source color.
Painting with white produces no change.
-
HARD_LIGHT
public static final BlendMode HARD_LIGHT
Multiplies or screens the colors, depending on the source color value.
The effect is similar to shining a harsh spotlight on the backdrop.
-
SOFT_LIGHT
public static final BlendMode SOFT_LIGHT
Darkens or lightens the colors, depending on the source color value.
The effect is similar to shining a diffused spotlight on the backdrop.
-
OVERLAY
public static final BlendMode OVERLAY
Multiplies or screens the colors, depending on the backdrop color value.
Source colors overlay the backdrop while preserving its highlights and shadows. The backdrop color is not replaced but is mixed with the source color to reflect the lightness or darkness of the backdrop.
-
DIFFERENCE
public static final BlendMode DIFFERENCE
Subtracts the darker of the two constituent colors from the lighter color.
Painting with white inverts the backdrop color; painting with black produces no change.
For subtractive colors, the maximum tint value for all colourants of the color space acts as black does for additive spaces.
This blend mode is not white-preserving.
-
EXCLUSION
public static final BlendMode EXCLUSION
Produces an effect similar to that of the Difference mode but lower in contrast.
Painting with white inverts the backdrop color; painting with black produces no change.
For subtractive colors, the maximum tint value for all colourants of the color space acts as black does for additive spaces.
-
HUE
public static final BlendMode HUE
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.
This blend mode is not separable.
-
SATURATION
public static final BlendMode SATURATION
Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.
Painting with this mode in an area of the backdrop that is a pure gray (no saturation) produces no change.
This blend mode is not separable.
-
COLOR
public static final BlendMode COLOR
Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.
This preserves the gray levels of the backdrop and is useful for coloring monochrome images or tinting color images.
This blend mode is not separable.
-
-
Method Detail
-
values
public static BlendMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlendMode c : BlendMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlendMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-