public class RotateNearestNeighbor extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
RotateNearestNeighbor(double angle)
Initialize a new instance of the RotateNearestNeighbor class.
|
RotateNearestNeighbor(double angle,
boolean keepSize)
Initialize a new instance of the RotateNearestNeighbor class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
double |
getAngle()
Get Angle.
|
boolean |
isKeepSize()
Keep original size.
|
void |
setAngle(double angle)
Set Angle.
|
void |
setFillColor(int gray)
Set Fill color.
|
void |
setFillColor(int red,
int green,
int blue)
Set Fill color.
|
void |
setKeepSize(boolean keepSize)
Set keep original size.
|
public RotateNearestNeighbor(double angle)
angle - Angle [0..360].public RotateNearestNeighbor(double angle,
boolean keepSize)
angle - Angle [0..360].keepSize - Keep original size.public double getAngle()
public void setAngle(double angle)
angle - Angle.public boolean isKeepSize()
public void setKeepSize(boolean keepSize)
keepSize - True if keep the original image size, otherwise false.public void setFillColor(int red,
int green,
int blue)
red - Red channel's value.green - Green channel's value.blue - Blue channel's value.public void setFillColor(int gray)
gray - Gray channel's value.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.