Enum Class BlendMode

java.lang.Object
java.lang.Enum<BlendMode>
dev.avelar.mapnik.BlendMode
All Implemented Interfaces:
Serializable, Comparable<BlendMode>, Constable

public enum BlendMode extends Enum<BlendMode>
How one image or layer is blended onto another. The names are the ones used in style files (the comp-op attribute), see xmlName(). Most people want SRC_OVER, the normal "paint on top", or MULTIPLY and SCREEN.
  • Enum Constant Details

    • CLEAR

      public static final BlendMode CLEAR
    • SRC

      public static final BlendMode SRC
    • DST

      public static final BlendMode DST
    • SRC_OVER

      public static final BlendMode SRC_OVER
    • DST_OVER

      public static final BlendMode DST_OVER
    • SRC_IN

      public static final BlendMode SRC_IN
    • DST_IN

      public static final BlendMode DST_IN
    • SRC_OUT

      public static final BlendMode SRC_OUT
    • DST_OUT

      public static final BlendMode DST_OUT
    • SRC_ATOP

      public static final BlendMode SRC_ATOP
    • DST_ATOP

      public static final BlendMode DST_ATOP
    • XOR

      public static final BlendMode XOR
    • PLUS

      public static final BlendMode PLUS
    • MINUS

      public static final BlendMode MINUS
    • MULTIPLY

      public static final BlendMode MULTIPLY
    • SCREEN

      public static final BlendMode SCREEN
    • OVERLAY

      public static final BlendMode OVERLAY
    • DARKEN

      public static final BlendMode DARKEN
    • LIGHTEN

      public static final BlendMode LIGHTEN
    • COLOR_DODGE

      public static final BlendMode COLOR_DODGE
    • COLOR_BURN

      public static final BlendMode COLOR_BURN
    • HARD_LIGHT

      public static final BlendMode HARD_LIGHT
    • SOFT_LIGHT

      public static final BlendMode SOFT_LIGHT
    • DIFFERENCE

      public static final BlendMode DIFFERENCE
    • EXCLUSION

      public static final BlendMode EXCLUSION
    • CONTRAST

      public static final BlendMode CONTRAST
    • INVERT

      public static final BlendMode INVERT
    • INVERT_RGB

      public static final BlendMode INVERT_RGB
    • GRAIN_MERGE

      public static final BlendMode GRAIN_MERGE
    • GRAIN_EXTRACT

      public static final BlendMode GRAIN_EXTRACT
    • HUE

      public static final BlendMode HUE
    • SATURATION

      public static final BlendMode SATURATION
    • COLOR

      public static final BlendMode COLOR
    • VALUE

      public static final BlendMode VALUE
    • LINEAR_DODGE

      public static final BlendMode LINEAR_DODGE
    • LINEAR_BURN

      public static final BlendMode LINEAR_BURN
    • DIVIDE

      public static final BlendMode DIVIDE
  • Method Details

    • values

      public static BlendMode[] 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

      public static BlendMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • xmlName

      public String xmlName()
      The name as written in style files, for example src-over.
    • fromXmlName

      public static BlendMode fromXmlName(String name)
      Find a mode by its style-file name. Throws IllegalArgumentException if there is none.