Class Tools
Defines how different tools act. I may rework this to be more like the BlendMode class where each Tool instance defines how it acts. Then to use a tool you would just do tool.Use(pixel) or similar.
public static class Tools
- Inheritance
-
Tools
- Inherited Members
Methods
PencilLineSmoothing(File, int, int, IntVector2[], IntVector2[], Color)
Smooth the meeting point of the two lines (given as coords) so it is pixel-perfect - i.e. no hard 90-degree corner.
public static bool PencilLineSmoothing(File file, int layer, int frame, IntVector2[] line, IntVector2[] previousLine, Color colourLineMeetingPoint)
Parameters
file
Filelayer
intframe
intline
IntVector2[]previousLine
IntVector2[]colourLineMeetingPoint
Color
Returns
UseBrush(File, int, int, IntVector2, IntVector2[], Color)
public static void UseBrush(File file, int layer, int frame, IntVector2 pixel, IntVector2[] brushBorderMaskPixels, Color colour)
Parameters
file
Filelayer
intframe
intpixel
IntVector2brushBorderMaskPixels
IntVector2[]colour
Color
UseBrush(File, int, int, int, int, IntVector2[], Color)
public static void UseBrush(File file, int layer, int frame, int x, int y, IntVector2[] brushBorderMaskPixels, Color colour)
Parameters
UseCircle(File, int, int, IntVector2, IntVector2, Color, bool, bool)
public static void UseCircle(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour, bool filled, bool stayWithinImageBounds)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
Colorfilled
boolstayWithinImageBounds
bool
UseEllipse(File, int, int, IntVector2, IntVector2, Color, bool)
public static void UseEllipse(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour, bool filled)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
Colorfilled
bool
UseEyeDropper(File, int, int, IntVector2)
public static Color UseEyeDropper(File file, int layer, int frame, IntVector2 pixel)
Parameters
file
Filelayer
intframe
intpixel
IntVector2
Returns
- Color
UseEyeDropper(File, int, int, int, int)
public static Color UseEyeDropper(File file, int layer, int frame, int x, int y)
Parameters
Returns
- Color
UseFill(File, int, int, IntVector2, Color, int)
public static void UseFill(File file, int layer, int frame, IntVector2 pixel, Color colour, int maxNumOfIterations = 1000000)
Parameters
file
Filelayer
intframe
intpixel
IntVector2colour
ColormaxNumOfIterations
int
UseFill(File, int, int, int, int, Color, int)
public static void UseFill(File file, int layer, int frame, int x, int y, Color colour, int maxNumOfIterations = 1000000)
Parameters
UseGradient(File, int, int, IntVector2, IntVector2, Color, Color, GradientMode)
public static void UseGradient(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, GradientMode gradientMode)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
ColorgradientMode
GradientMode
UseGradient(File, int, int, IntVector2, IntVector2, Color, Color, GradientMode, IntVector2[])
public static void UseGradient(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, GradientMode gradientMode, IntVector2[] mask)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
ColorgradientMode
GradientModemask
IntVector2[]
UseGradient(File, int, int, IntVector2, IntVector2, Color, Color, GradientMode, Texture2D)
public static void UseGradient(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, GradientMode gradientMode, Texture2D mask)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
ColorgradientMode
GradientModemask
Texture2D
UseGradientLinear(File, int, int, IntVector2, IntVector2, Color, Color)
public static void UseGradientLinear(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
Color
UseGradientLinear(File, int, int, IntVector2, IntVector2, Color, Color, IntVector2[])
public static void UseGradientLinear(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, IntVector2[] mask)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
Colormask
IntVector2[]
UseGradientLinear(File, int, int, IntVector2, IntVector2, Color, Color, Texture2D)
public static void UseGradientLinear(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, Texture2D mask)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
Colormask
Texture2D
UseGradientRadial(File, int, int, IntVector2, IntVector2, Color, Color)
public static void UseGradientRadial(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
Color
UseGradientRadial(File, int, int, IntVector2, IntVector2, Color, Color, IntVector2[])
public static void UseGradientRadial(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, IntVector2[] mask)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
Colormask
IntVector2[]
UseGradientRadial(File, int, int, IntVector2, IntVector2, Color, Color, Texture2D)
public static void UseGradientRadial(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color startColour, Color endColour, Texture2D mask)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2startColour
ColorendColour
Colormask
Texture2D
UseIsoBox(File, int, int, IntVector2, IntVector2, IntVector2, Color, bool)
public static void UseIsoBox(File file, int layer, int frame, IntVector2 baseStart, IntVector2 baseEnd, IntVector2 heightEnd, Color colour, bool filled)
Parameters
file
Filelayer
intframe
intbaseStart
IntVector2baseEnd
IntVector2heightEnd
IntVector2colour
Colorfilled
bool
UseIsoRectangle(File, int, int, IntVector2, IntVector2, Color, bool)
public static void UseIsoRectangle(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour, bool filled)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
Colorfilled
bool
UseLine(File, int, int, IntVector2, IntVector2, Color)
public static void UseLine(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
Color
UsePencil(File, int, int, IntVector2, Color)
public static void UsePencil(File file, int layer, int frame, IntVector2 pixel, Color colour)
Parameters
file
Filelayer
intframe
intpixel
IntVector2colour
Color
UsePencil(File, int, int, int, int, Color)
public static void UsePencil(File file, int layer, int frame, int x, int y, Color colour)
Parameters
UseRectangle(File, int, int, IntVector2, IntVector2, Color, bool)
public static void UseRectangle(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour, bool filled)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
Colorfilled
bool
UseRightTriangle(File, int, int, IntVector2, IntVector2, Color, bool, bool)
public static void UseRightTriangle(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour, bool rightAngleOnBottom, bool filled)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
ColorrightAngleOnBottom
boolfilled
bool
UseRubber(File, int, int, IntVector2)
public static void UseRubber(File file, int layer, int frame, IntVector2 pixel)
Parameters
file
Filelayer
intframe
intpixel
IntVector2
UseRubber(File, int, int, IntVector2, IntVector2[])
public static void UseRubber(File file, int layer, int frame, IntVector2 pixel, IntVector2[] brushBorderMaskPixels)
Parameters
file
Filelayer
intframe
intpixel
IntVector2brushBorderMaskPixels
IntVector2[]
UseRubber(File, int, int, int, int)
public static void UseRubber(File file, int layer, int frame, int x, int y)
Parameters
UseRubber(File, int, int, int, int, IntVector2[])
public static void UseRubber(File file, int layer, int frame, int x, int y, IntVector2[] brushBorderMaskPixels)
Parameters
UseSquare(File, int, int, IntVector2, IntVector2, Color, bool, bool)
public static void UseSquare(File file, int layer, int frame, IntVector2 start, IntVector2 end, Color colour, bool filled, bool stayWithinImageBounds)
Parameters
file
Filelayer
intframe
intstart
IntVector2end
IntVector2colour
Colorfilled
boolstayWithinImageBounds
bool