Class AbstractBlendComposite
- All Implemented Interfaces:
Composite
- Direct Known Subclasses:
BlendModeComposite
,CompositeModeComposite.ArithmeticComposite
,CompositeModeComposite.LighterComposite
A blend composite defines the rule according to which a drawing primitive (known as the source) is mixed with existing graphics (know as the destination.)
BlendComposite
is an implementation of the
Composite
interface and must therefore be set as a state on
a Graphics2D
surface.
Please refer to Graphics2D.setComposite(java.awt.Composite)
for more information on how to use this class with a graphics surface.
Blending Modes
This class offers a certain number of blending modes, or compositing rules. These rules are inspired from graphics editing software packages, like Adobe Photoshop or The GIMP.
Given the wide variety of implemented blending modes and the difficulty to describe them with words, please refer to those tools to visually see the result of these blending modes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NotNull AbstractBlendComposite.Blender
blender()
createContext
(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) private static boolean
void
setConvertToLinearRGB
(boolean convertToLinearRGB)
-
Field Details
-
convertToLinearRGB
private boolean convertToLinearRGB
-
-
Constructor Details
-
AbstractBlendComposite
protected AbstractBlendComposite()
-
-
Method Details
-
blender
-
isColorModelInvalid
-
setConvertToLinearRGB
public void setConvertToLinearRGB(boolean convertToLinearRGB) -
createContext
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) - Specified by:
createContext
in interfaceComposite
-