Enum Class BlendComposite.BlendingMode

All Implemented Interfaces:
Serializable, Comparable<BlendComposite.BlendingMode>, Constable
Enclosing class:
BlendComposite

public static enum BlendComposite.BlendingMode extends Enum<BlendComposite.BlendingMode>
A list of all supported color blending operations. Each operation is implemented according to the SVG compositing primer.
  • Enum Constant Details

  • Method Details

    • values

      public static BlendComposite.BlendingMode[] 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 BlendComposite.BlendingMode 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
    • 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

      public String getName()
    • lookupByName

      public static 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)
      Parameters:
      name - The standard name
      Returns:
      The corresponding blending mode, or null if not found
    • getStandardNames

      public static List<String> getStandardNames()
      Returns the list of blending modes standard names
      Returns:
      The list of blending mode names