Catalano.Imaging.Filters
Class Resize
- java.lang.Object
-
- Catalano.Imaging.Filters.Resize
-
- All Implemented Interfaces:
- IApply, IApplyInPlace
public class Resize extends java.lang.Object implements IApply, IApplyInPlace
Resize image using interpolation algorithms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classResize.AlgorithmInterpolation algorithm.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FastBitmapapply(FastBitmap fastBitmap)Apply the filtervoidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intgetNewHeight()Get Height of the new resized image.intgetNewWidth()Get Width of the new resized image.voidsetNewHeight(int newHeight)Set Height of the new resized image.voidsetNewSize(int newWidth, int newHeight)Set Size of the new resized image.voidsetNewWidth(int newWidth)Set Width of the new resized image.
-
-
-
Constructor Detail
-
Resize
public Resize(int newWidth, int newHeight)Initialize a new instance of the Resize class.- Parameters:
newWidth- Width of the new resized image.newHeight- Height of the new resized image.
-
Resize
public Resize(int newWidth, int newHeight, Resize.Algorithm algorithm)Initialize a new instance of the Resize class.- Parameters:
newWidth- Width of the new resized image.newHeight- Height of the new resized image.algorithm- Interpolation algorithm.
-
-
Method Detail
-
getNewHeight
public int getNewHeight()
Get Height of the new resized image.- Returns:
- New height.
-
setNewHeight
public void setNewHeight(int newHeight)
Set Height of the new resized image.- Parameters:
newHeight- New height.
-
getNewWidth
public int getNewWidth()
Get Width of the new resized image.- Returns:
- New width.
-
setNewWidth
public void setNewWidth(int newWidth)
Set Width of the new resized image.- Parameters:
newWidth- New width.
-
setNewSize
public void setNewSize(int newWidth, int newHeight)Set Size of the new resized image.- Parameters:
newWidth- Width of the new resized image.newHeight- Height of the new resized image.
-
apply
public FastBitmap apply(FastBitmap fastBitmap)
Description copied from interface:IApplyApply the filter
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG