Enum BlendComposite.BlendingMode

    • Method Detail

      • values

        public static BlendComposite.BlendingMode[] 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 (BlendComposite.BlendingMode c : BlendComposite.BlendingMode.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BlendComposite.BlendingMode 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type 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)
        name - The standard name
        The corresponding blending mode, or null if not found
      • getStandardNames

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