Package games.stendhal.client.gui.j2d
Class Blend
java.lang.Object
games.stendhal.client.gui.j2d.Blend
- All Implemented Interfaces:
Composite
Blending composite modes.
-
Field Summary
Modifier and TypeFieldDescriptionstatic Blend
A generic lighting blend.static Blend
A blending mode that multiplies the underlying image with the above one.static Blend
Screen blend mode.static Blend
Softlight blend mode.static Blend
A blending mode that colors the destination image with the source color. -
Method Summary
Modifier and TypeMethodDescriptionstatic Blend
createBleach(Color color)
Create a new Bleach blend for a color.createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints arg2)
toString()
-
Field Details
-
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
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
A blending mode that multiplies the underlying image with the above one. -
Screen
Screen blend mode. -
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 interfaceComposite
-
createBleach
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
-