Class ImageFunctions.MultiplicativeComposite
java.lang.Object
com.blackrook.rookscript.desktop.functions.ImageFunctions.MultiplicativeComposite
- All Implemented Interfaces:
Composite
- Enclosing class:
- ImageFunctions
public static final class ImageFunctions.MultiplicativeComposite extends Object implements Composite
A composite that multiplies pixel color together.
The scalar amount for the multiply 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.MultiplicativeComposite
getInstance()
static ImageFunctions.MultiplicativeComposite
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
-