Package org.geotools.renderer.composite
Enum Class BlendComposite.BlendingMode
- All Implemented Interfaces:
Serializable
,Comparable<BlendComposite.BlendingMode>
,Constable
- Enclosing class:
- BlendComposite
A list of all supported color blending operations. Each operation is implemented according to the SVG compositing primer.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the list of blending modes standard namesstatic BlendComposite.BlendingMode
lookupByName
(String name) Looks up a blending mode by its SVG standard name (as opposed to the enum name, which for example cannot contain hyphens)abstract void
perform
(int sr, int sg, int sb, int sa, int dr, int dg, int db, int da, int[] result) Performs the color blending on the given pixels, assuming the source colors are pre-multipliedstatic BlendComposite.BlendingMode
Returns the enum constant of this class with the specified name.static BlendComposite.BlendingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MULTIPLY
-
SCREEN
-
OVERLAY
-
DARKEN
-
LIGHTEN
-
COLOR_DODGE
-
COLOR_BURN
-
HARD_LIGHT
-
SOFT_LIGHT
-
DIFFERENCE
-
EXCLUSION
-
-
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
-
perform
public abstract void perform(int sr, int sg, int sb, int sa, int dr, int dg, int db, int da, int[] result) Performs the color blending on the given pixels, assuming the source colors are pre-multiplied -
getName
-
lookupByName
Looks up a blending mode by its SVG standard name (as opposed to the enum name, which for example cannot contain hyphens)- Parameters:
name
- The standard name- Returns:
- The corresponding blending mode, or null if not found
-
getStandardNames
Returns the list of blending modes standard names- Returns:
- The list of blending mode names
-