public final enum

BlendMode

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pspdfkit.annotations.BlendMode

Class Overview

List of blending modes available for the annotations that can be set by setBlendMode(BlendMode).

Summary

Enum Values
BlendMode  COLOR_BURN  Darkens the backdrop colour to reflect the source colour. 
BlendMode  COLOR_DODGE  Brightens the backdrop colour to reflect the source colour. 
BlendMode  DARKEN  B(cb, cs) = min(cb, cs) Selects the darker of the backdrop and source colours. 
BlendMode  DIFFERENCE  B(cb,cs) = cb–cs Subtracts the darker of the two constituent colours from the lighter colour: Painting with white inverts the backdrop colour; painting with black produces no change. 
BlendMode  EXCLUSION  B(cb,cs) = cb+cs–2×cb×cs Produces an effect similar to that of the Difference mode but lower in contrast. 
BlendMode  HARD_LIGHT  Multiplies or screens the colours, depending on the source colour value. 
BlendMode  LIGHTEN  B(cb, cs) = max(cb, cs) Selects the lighter of the backdrop and source colours. 
BlendMode  MULTIPLY  B(cb,cs) = cb×cs Multiplies the backdrop and source colour values. 
BlendMode  NORMAL  B(cb,cs) = cs Selects the source colour, ignoring the backdrop. 
BlendMode  OVERLAY  B(cb, cs) = HardLight(cs, cb) Multiplies or screens the colours, depending on the backdrop colour value. 
BlendMode  SCREEN  B(cb,cs) = 1 – [(1–cb)×(1–cs)] = cb + cs – (cb × cs) Multiplies the complements of the backdrop and source colour values, then complements the result. 
BlendMode  SOFT_LIGHT  Darkens or lightens the colours, depending on the source colour value. 
Public Methods
static BlendMode valueOf(String name)
final static BlendMode[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final BlendMode COLOR_BURN

Darkens the backdrop colour to reflect the source colour. Painting with white produces no change.

public static final BlendMode COLOR_DODGE

Brightens the backdrop colour to reflect the source colour. Painting with black produces no changes.

public static final BlendMode DARKEN

B(cb, cs) = min(cb, cs) Selects the darker of the backdrop and source colours. The backdrop is replaced with the source where the source is darker; otherwise, it is left unchanged.

See Also

public static final BlendMode DIFFERENCE

B(cb,cs) = cb–cs Subtracts the darker of the two constituent colours from the lighter colour: Painting with white inverts the backdrop colour; painting with black produces no change.

public static final BlendMode EXCLUSION

B(cb,cs) = cb+cs–2×cb×cs Produces an effect similar to that of the Difference mode but lower in contrast. Painting with white inverts the backdrop colour; painting with black produces no change.

public static final BlendMode HARD_LIGHT

Multiplies or screens the colours, depending on the source colour value. The effect is similar to shining a harsh spotlight on the backdrop.

public static final BlendMode LIGHTEN

B(cb, cs) = max(cb, cs) Selects the lighter of the backdrop and source colours. The backdrop is replaced with the source where the source is lighter; otherwise, it is left unchanged.

See Also

public static final BlendMode MULTIPLY

B(cb,cs) = cb×cs Multiplies the backdrop and source colour values. The result colour is always at least as dark as either of the two constituent colours. Multiplying any colour with black produces black; multiplying with white leaves the original colour unchanged. Painting successive overlapping objects with a colour other than black or white produces progressively darker colours.

See Also

public static final BlendMode NORMAL

B(cb,cs) = cs Selects the source colour, ignoring the backdrop.

See Also

public static final BlendMode OVERLAY

B(cb, cs) = HardLight(cs, cb) Multiplies or screens the colours, depending on the backdrop colour value. Source colours overlay the backdrop while preserving its highlights and shadows. The backdrop colour is not replaced but is mixed with the source colour to reflect the lightness or darkness of the backdrop.

See Also

public static final BlendMode SCREEN

B(cb,cs) = 1 – [(1–cb)×(1–cs)] = cb + cs – (cb × cs) Multiplies the complements of the backdrop and source colour values, then complements the result. The result colour is always at least as light as either of the two constituent colours. Screening any colour with white produces white; screening with black leaves the original colour unchanged. The effect is similar to projecting multiple photographic slides simultaneously onto a single screen.

See Also

public static final BlendMode SOFT_LIGHT

Darkens or lightens the colours, depending on the source colour value. The effect is similar to shining a diffused spotlight on the backdrop.

Public Methods

public static BlendMode valueOf (String name)

public static final BlendMode[] values ()