public class FloodFill extends java.lang.Object implements IApplyInPlace
| Modifier and Type | Class and Description |
|---|---|
static class |
FloodFill.Algorithm
Specifies different floodfill algorithm.
|
| Constructor and Description |
|---|
FloodFill(int x,
int y,
Color color)
Initialize a new instance of the FloodFill class.
|
FloodFill(int x,
int y,
int gray)
Initialize a new instance of the FloodFill class.
|
FloodFill(int x,
int y,
int gray,
FloodFill.Algorithm algorithm)
Initialize a new instance of the FloodFill class.
|
FloodFill(int x,
int y,
int r,
int g,
int b)
Initialize a new instance of the FloodFill class.
|
FloodFill(int x,
int y,
int r,
int g,
int b,
FloodFill.Algorithm algorithm)
Initialize a new instance of the FloodFill class.
|
FloodFill(IntPoint p,
Color color)
Initialize a new instance of the FloodFill class.
|
FloodFill(IntPoint p,
int gray)
Initialize a new instance of the FloodFill class.
|
FloodFill(IntPoint p,
int gray,
FloodFill.Algorithm algorithm)
Initialize a new instance of the FloodFill class.
|
FloodFill(IntPoint p,
int r,
int g,
int b)
Initialize a new instance of the FloodFill class.
|
FloodFill(IntPoint p,
int r,
int g,
int b,
FloodFill.Algorithm algorithm)
Initialize a new instance of the FloodFill class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
FloodFill.Algorithm |
getAlgorithm()
Floodfill algorithm.
|
IntPoint |
getPoint()
Get point.
|
void |
setAlgorithm(FloodFill.Algorithm algorithm)
Floodfill algorithm.
|
void |
setPoint(int x,
int y)
Sets point.
|
void |
setRGB(int r,
int g,
int b)
Sets RGB.
|
public FloodFill(int x,
int y,
Color color)
x - X axis coordinate.y - Y axis coordinate.color - Color.public FloodFill(int x,
int y,
int r,
int g,
int b)
x - X-axis.y - Y-axis.r - Red channel value.g - Green channel value.b - Blue channel value.public FloodFill(int x,
int y,
int r,
int g,
int b,
FloodFill.Algorithm algorithm)
x - X-axis.y - Y-axis.r - Red channel value.g - Green channel value.b - Blue channel value.algorithm - Floodfill algorithm.public FloodFill(IntPoint p, int r, int g, int b)
p - Point (x,y);r - Red channel value.g - Green channel value.b - Blue channel value.public FloodFill(IntPoint p, Color color)
p - Point(x,y).color - Color.public FloodFill(IntPoint p, int r, int g, int b, FloodFill.Algorithm algorithm)
p - Point (x,y);r - Red channel value.g - Green channel value.b - Blue channel value.algorithm - Floodfill algorithm.public FloodFill(int x,
int y,
int gray)
x - X-axis.y - Y-axis.gray - Gray channel value.public FloodFill(int x,
int y,
int gray,
FloodFill.Algorithm algorithm)
x - X-axis.y - Y-axis.gray - Gray channel value.algorithm - Floodfill algorithm.public FloodFill(IntPoint p, int gray)
p - Point (x,y).gray - Gray channel value.public FloodFill(IntPoint p, int gray, FloodFill.Algorithm algorithm)
p - Point (x,y).gray - Gray channel value.algorithm - Floodfill algorithm.public FloodFill.Algorithm getAlgorithm()
public void setAlgorithm(FloodFill.Algorithm algorithm)
algorithm - Floodfill algorithm.public void setRGB(int r,
int g,
int b)
r - Red channel value.g - Green channel value.b - Blue channel value.public IntPoint getPoint()
public void setPoint(int x,
int y)
x - X-axis.y - Y-axis.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.