public class Resize extends java.lang.Object implements IApplyInPlace
| Modifier and Type | Class and Description |
|---|---|
static class |
Resize.Algorithm
Interpolation algorithm.
|
| Constructor and Description |
|---|
Resize(int newWidth,
int newHeight)
Initialize a new instance of the Resize class.
|
Resize(int newWidth,
int newHeight,
Resize.Algorithm algorithm)
Initialize a new instance of the Resize class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
int |
getNewHeight()
Get Height of the new resized image.
|
int |
getNewWidth()
Get Width of the new resized image.
|
void |
setNewHeight(int newHeight)
Set Height of the new resized image.
|
void |
setNewSize(int newWidth,
int newHeight)
Set Size of the new resized image.
|
void |
setNewWidth(int newWidth)
Set Width of the new resized image.
|
public Resize(int newWidth,
int newHeight)
newWidth - Width of the new resized image.newHeight - Height of the new resized image.public Resize(int newWidth,
int newHeight,
Resize.Algorithm algorithm)
newWidth - Width of the new resized image.newHeight - Height of the new resized image.algorithm - Interpolation algorithm.public int getNewHeight()
public void setNewHeight(int newHeight)
newHeight - New height.public int getNewWidth()
public void setNewWidth(int newWidth)
newWidth - New width.public void setNewSize(int newWidth,
int newHeight)
newWidth - Width of the new resized image.newHeight - Height of the new resized image.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.