Enum ImageFunctions
- All Implemented Interfaces:
com.blackrook.rookscript.lang.ScriptFunctionType
,Serializable
,Comparable<ImageFunctions>
,java.lang.constant.Constable
public enum ImageFunctions extends Enum<ImageFunctions> implements com.blackrook.rookscript.lang.ScriptFunctionType
Script functions for image manipulation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageFunctions.AdditiveComposite
A composite that adds pixel color together.static class
ImageFunctions.AdditiveCompositeContext
The composite context forImageFunctions.AdditiveComposite
s.static class
ImageFunctions.CompositingTypes
Compositing types.static class
ImageFunctions.DesaturationComposite
A composite that multiplies pixel color together.static class
ImageFunctions.DesaturationCompositeContext
The composite context forImageFunctions.DesaturationComposite
s.static class
ImageFunctions.MultiplicativeComposite
A composite that multiplies pixel color together.static class
ImageFunctions.MultiplicativeCompositeContext
The composite context forImageFunctions.MultiplicativeComposite
s.static class
ImageFunctions.ResamplingType
Resampling types.static class
ImageFunctions.SubtractiveComposite
A composite that subtracts pixel color.static class
ImageFunctions.SubtractiveCompositeContext
The composite context forImageFunctions.SubtractiveComposite
s. -
Enum Constant Summary
Enum Constants Enum Constant Description IMAGE
IMAGECOPY
IMAGECROP
IMAGEDRAW
IMAGEFILL
IMAGEFLIPH
IMAGEFLIPV
IMAGEGET
IMAGEHEIGHT
IMAGEPAINT
IMAGEREAD
IMAGERESIZE
IMAGESCALE
IMAGESET
IMAGETRANSPOSE
IMAGEWIDTH
IMAGEWRITE
-
Method Summary
Modifier and Type Method Description static com.blackrook.rookscript.resolvers.ScriptFunctionResolver
createResolver()
abstract boolean
execute(com.blackrook.rookscript.ScriptInstance scriptInstance, com.blackrook.rookscript.ScriptValue returnValue)
int
getParameterCount()
com.blackrook.rookscript.lang.ScriptFunctionType.Usage
getUsage()
protected abstract com.blackrook.rookscript.lang.ScriptFunctionType.Usage
usage()
static ImageFunctions
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImageFunctions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createResolver
public static final com.blackrook.rookscript.resolvers.ScriptFunctionResolver createResolver()- Returns:
- a function resolver that handles all of the functions in this enum.
-
getParameterCount
public int getParameterCount()- Specified by:
getParameterCount
in interfacecom.blackrook.rookscript.lang.ScriptFunctionType
-
getUsage
public com.blackrook.rookscript.lang.ScriptFunctionType.Usage getUsage()- Specified by:
getUsage
in interfacecom.blackrook.rookscript.lang.ScriptFunctionType
-
execute
public abstract boolean execute(com.blackrook.rookscript.ScriptInstance scriptInstance, com.blackrook.rookscript.ScriptValue returnValue)- Specified by:
execute
in interfacecom.blackrook.rookscript.lang.ScriptFunctionType
-
usage
protected abstract com.blackrook.rookscript.lang.ScriptFunctionType.Usage usage()
-