Enum BlendMode

java.lang.Object
java.lang.Enum<BlendMode>
com.itextpdf.layout.properties.BlendMode
All Implemented Interfaces:
Serializable, Comparable<BlendMode>, java.lang.constant.Constable

public enum BlendMode extends Enum<BlendMode>
Defines all possible blend modes and their mapping to pdf names.
  • Enum Constant Details

    • NORMAL

      public static final BlendMode NORMAL
    • 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
    • HUE

      public static final BlendMode HUE
    • SATURATION

      public static final BlendMode SATURATION
    • COLOR

      public static final BlendMode COLOR
    • LUMINOSITY

      public static final BlendMode LUMINOSITY
  • Method Details

    • values

      public static BlendMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BlendMode valueOf (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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getPdfRepresentation

      public PdfName getPdfRepresentation()
      Get the pdf representation of the current blend mode.
      Returns:
      the PdfName representation of the current blend mode.