Class Blend

java.lang.Object
games.stendhal.client.gui.j2d.Blend
All Implemented Interfaces:
Composite

public class Blend extends Object implements Composite
Blending composite modes.
  • Field Details

    • TrueColor

      public static final Blend TrueColor
      A blending mode that colors the destination image with the source color. Also adjusts the middle lightness values up or down, depending on the lightness of the source image.
    • GenericLight

      public static final Blend GenericLight
      A generic lighting blend. Supports only white light and is not as accurate as Bleach for zones using multiply blend. Those should use Bleach instead, but this can be used for others.
    • Multiply

      public static final Blend Multiply
      A blending mode that multiplies the underlying image with the above one.
    • Screen

      public static final Blend Screen
      Screen blend mode.
    • SoftLight

      public static final Blend SoftLight
      Softlight blend mode. Note that this is similar to the GIMP layer mode with the same name.
  • Method Details

    • createContext

      public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints arg2)
      Specified by:
      createContext in interface Composite
    • createBleach

      public static Blend createBleach(Color color)
      Create a new Bleach blend for a color. The blend removes the effect of multiplying with the color, using the lightness of the source image as the degree to bleach the color.
      Parameters:
      color -
      Returns:
      Bleach blend for color
    • toString

      public String toString()
      Overrides:
      toString in class Object