Class ImageFunctions.SubtractiveComposite
java.lang.Object
com.blackrook.rookscript.desktop.functions.ImageFunctions.SubtractiveComposite
- All Implemented Interfaces:
Composite
- Enclosing class:
- ImageFunctions
public static final class ImageFunctions.SubtractiveComposite extends Object implements Composite
A composite that subtracts pixel color.
The scalar amount for the subtraction per pixel is taken from the alpha component.
-
Method Summary
Modifier and Type Method Description CompositeContext
createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
static ImageFunctions.SubtractiveComposite
getInstance()
static ImageFunctions.SubtractiveComposite
getInstance(float scalar)
-
Method Details
-
getInstance
- Returns:
- an instance of this composite.
-
getInstance
- Parameters:
scalar
- the applicative scalar.- Returns:
- an instance of this composite.
-
createContext
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)- Specified by:
createContext
in interfaceComposite
-