Class ImageFunctions.DesaturationComposite
java.lang.Object
com.blackrook.rookscript.desktop.functions.ImageFunctions.DesaturationComposite
- All Implemented Interfaces:
Composite
- Enclosing class:
- ImageFunctions
public static final class ImageFunctions.DesaturationComposite 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.
- Since:
- 1.10.2.1
-
Method Summary
Modifier and Type Method Description CompositeContext
createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
static ImageFunctions.DesaturationComposite
getInstance()
static ImageFunctions.DesaturationComposite
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
-