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
FieldsModifier and TypeFieldDescriptionstatic final BlendA generic lighting blend.static final BlendA blending mode that multiplies the underlying image with the above one.static final BlendScreen blend mode.static final BlendSoftlight blend mode.static final BlendA blending mode that colors the destination image with the source color. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlendcreateBleach(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:
createContextin 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
-