Enum ImageFunctions
- All Implemented Interfaces:
com.blackrook.rookscript.lang.ScriptFunctionType, Serializable, Comparable<ImageFunctions>
public enum ImageFunctions
extends Enum<ImageFunctions>
implements com.blackrook.rookscript.lang.ScriptFunctionType
Script functions for image manipulation.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA composite that adds pixel color together.static classThe composite context forImageFunctions.AdditiveComposites.static enumCompositing types.static final classA composite that multiplies pixel color together.static classThe composite context forImageFunctions.DesaturationComposites.static final classA composite that multiplies pixel color together.static classThe composite context forImageFunctions.MultiplicativeComposites.static enumResampling types.static final classA composite that subtracts pixel color.static classThe composite context forImageFunctions.SubtractiveComposites.Nested classes/interfaces inherited from interface com.blackrook.rookscript.lang.ScriptFunctionType
com.blackrook.rookscript.lang.ScriptFunctionType.Usage -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic final com.blackrook.rookscript.resolvers.ScriptFunctionResolverabstract booleanexecute(com.blackrook.rookscript.ScriptInstance scriptInstance, com.blackrook.rookscript.ScriptValue returnValue) intcom.blackrook.rookscript.lang.ScriptFunctionType.UsagegetUsage()protected abstract com.blackrook.rookscript.lang.ScriptFunctionType.Usageusage()static ImageFunctionsReturns 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.Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.blackrook.rookscript.lang.ScriptFunctionType
name
-
Enum Constant Details
-
IMAGE
-
IMAGEREAD
-
IMAGEWRITE
-
IMAGECOPY
-
IMAGERESIZE
-
IMAGESCALE
-
IMAGECROP
-
IMAGEFLIPH
-
IMAGEFLIPV
-
IMAGETRANSPOSE
-
IMAGEFILL
-
IMAGEPAINT
-
IMAGEDRAW
- Since:
- 1.10.2.1
-
IMAGESET
-
IMAGEGET
-
IMAGEWIDTH
-
IMAGEHEIGHT
-
-
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:
getParameterCountin interfacecom.blackrook.rookscript.lang.ScriptFunctionType
-
getUsage
public com.blackrook.rookscript.lang.ScriptFunctionType.Usage getUsage()- Specified by:
getUsagein interfacecom.blackrook.rookscript.lang.ScriptFunctionType
-
execute
public abstract boolean execute(com.blackrook.rookscript.ScriptInstance scriptInstance, com.blackrook.rookscript.ScriptValue returnValue) - Specified by:
executein interfacecom.blackrook.rookscript.lang.ScriptFunctionType
-
usage
protected abstract com.blackrook.rookscript.lang.ScriptFunctionType.Usage usage()
-