Enum BlendMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BlendMode>

    public enum BlendMode
    extends java.lang.Enum<BlendMode>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CLEAR
      Replaces destination with zero: fully transparent.
      COLOR
      Hue and saturation of source with luminosity of destination.
      COLOR_BURN
      Darken destination to reflect source.
      COLOR_DODGE
      Brighten destination to reflect source.
      DARKEN
      Darker of source and destination.
      DIFFERENCE
      Subtract darker from lighter with higher contrast.
      DST
      Preserves destination.
      DST_ATOP
      Destination inside source blended with source.
      DST_IN
      Destination trimmed by source.
      DST_OUT
      Destination trimmed outside source.
      DST_OVER
      Destination over source.
      EXCLUSION
      Subtract darker from lighter with lower contrast.
      HARD_LIGHT
      Multiply or screen, depending on source.
      HUE
      Hue of source with saturation and luminosity of destination.
      LIGHTEN
      Lighter of source and destination.
      LUMINOSITY
      Luminosity of source with hue and saturation of destination.
      MODULATE
      Product of premultiplied colors; darkens destination.
      MULTIPLY
      Multiply source with destination, darkening image.
      OVERLAY
      Multiply or screen, depending on destination.
      PLUS
      Sum of colors.
      SATURATION
      Saturation of source with hue and luminosity of destination.
      SCREEN
      Multiply inverse of pixels, inverting result; brightens destination.
      SOFT_LIGHT
      Lighten or darken, depending on source.
      SRC
      Replaces destination.
      SRC_ATOP
      Source inside destination blended with destination.
      SRC_IN
      Source trimmed inside destination.
      SRC_OUT
      Source trimmed outside destination.
      SRC_OVER
      Source over destination.
      XOR
      Each of source and destination trimmed outside the other.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static BlendMode[] _values  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BlendMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BlendMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CLEAR

        public static final BlendMode CLEAR
        Replaces destination with zero: fully transparent.
      • SRC

        public static final BlendMode SRC
        Replaces destination.
      • DST

        public static final BlendMode DST
        Preserves destination.
      • SRC_OVER

        public static final BlendMode SRC_OVER
        Source over destination.
      • DST_OVER

        public static final BlendMode DST_OVER
        Destination over source.
      • SRC_IN

        public static final BlendMode SRC_IN
        Source trimmed inside destination.
      • DST_IN

        public static final BlendMode DST_IN
        Destination trimmed by source.
      • SRC_OUT

        public static final BlendMode SRC_OUT
        Source trimmed outside destination.
      • DST_OUT

        public static final BlendMode DST_OUT
        Destination trimmed outside source.
      • SRC_ATOP

        public static final BlendMode SRC_ATOP
        Source inside destination blended with destination.
      • DST_ATOP

        public static final BlendMode DST_ATOP
        Destination inside source blended with source.
      • XOR

        public static final BlendMode XOR
        Each of source and destination trimmed outside the other.
      • PLUS

        public static final BlendMode PLUS
        Sum of colors.
      • MODULATE

        public static final BlendMode MODULATE
        Product of premultiplied colors; darkens destination.
      • SCREEN

        public static final BlendMode SCREEN
        Multiply inverse of pixels, inverting result; brightens destination.
      • OVERLAY

        public static final BlendMode OVERLAY
        Multiply or screen, depending on destination.
      • DARKEN

        public static final BlendMode DARKEN
        Darker of source and destination.
      • LIGHTEN

        public static final BlendMode LIGHTEN
        Lighter of source and destination.
      • COLOR_DODGE

        public static final BlendMode COLOR_DODGE
        Brighten destination to reflect source.
      • COLOR_BURN

        public static final BlendMode COLOR_BURN
        Darken destination to reflect source.
      • HARD_LIGHT

        public static final BlendMode HARD_LIGHT
        Multiply or screen, depending on source.
      • SOFT_LIGHT

        public static final BlendMode SOFT_LIGHT
        Lighten or darken, depending on source.
      • DIFFERENCE

        public static final BlendMode DIFFERENCE
        Subtract darker from lighter with higher contrast.
      • EXCLUSION

        public static final BlendMode EXCLUSION
        Subtract darker from lighter with lower contrast.
      • MULTIPLY

        public static final BlendMode MULTIPLY
        Multiply source with destination, darkening image.
      • HUE

        public static final BlendMode HUE
        Hue of source with saturation and luminosity of destination.
      • SATURATION

        public static final BlendMode SATURATION
        Saturation of source with hue and luminosity of destination.
      • COLOR

        public static final BlendMode COLOR
        Hue and saturation of source with luminosity of destination.
      • LUMINOSITY

        public static final BlendMode LUMINOSITY
        Luminosity of source with hue and saturation of destination.
    • Field Detail

      • _values

        @Internal
        public static final BlendMode[] _values
    • Method Detail

      • values

        public static BlendMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BlendMode c : BlendMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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