public class Crop
extends java.lang.Object
The filter crops an image providing a new image, which contains only the specified rectangle of the original image.
| Constructor and Description |
|---|
Crop(int x,
int y,
int width,
int height)
Initialize a new instance of the Crop class.
|
Crop(IntRectangle rectangle)
Initialize a new instance of the Crop class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ApplyInPlace(FastBitmap fastBitmap)
Apply filter to a FastBitmap.
|
int |
getHeight() |
int |
getWidth()
Get Width.
|
int |
getX()
Get Initial X axis coordinate.
|
int |
getY()
Get Initial Y axis coordinate.
|
void |
setHeight(int height)
Set Height.
|
void |
setPosition(int x,
int y)
Set Initial X and Y axis coordinate.
|
void |
setSize(int height,
int width)
Set Width and Height.
|
void |
setWidth(int width)
Set Width.
|
void |
setX(int x)
Set Initial X axis coordinate.
|
void |
setY(int y)
Set Initial Y axis coordinate.
|
public Crop(IntRectangle rectangle)
rectangle - Rectangle.public Crop(int x,
int y,
int width,
int height)
x - start x position.y - start y position.width - new width.height - new height.public int getX()
public void setX(int x)
x - X axis coordinate.public int getY()
public void setY(int y)
y - Y axis coordinate.public void setPosition(int x,
int y)
x - X axis coordinate.y - Y axis coordinate.public int getHeight()
public void setHeight(int height)
height - Height.public int getWidth()
public void setWidth(int width)
width - Width.public void setSize(int height,
int width)
height - Height.width - Width.public void ApplyInPlace(FastBitmap fastBitmap)
fastBitmap - FastBitmap