Catalano.Imaging.Filters
Class ResizeBilinear
- java.lang.Object
-
- Catalano.Imaging.Filters.ResizeBilinear
-
- All Implemented Interfaces:
- IApply, IApplyInPlace
public class ResizeBilinear extends java.lang.Object implements IApply, IApplyInPlace
Resize image using bilinear interpolation algorithm.The class implements image resizing filter using bilinear interpolation algorithm.
-
-
Constructor Summary
Constructors Constructor and Description ResizeBilinear(int newWidth, int newHeight)Initialize a new instance of the ResizeBilinear 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
-
ResizeBilinear
public ResizeBilinear(int newWidth, int newHeight)Initialize a new instance of the ResizeBilinear class.- Parameters:
newWidth- Width of the new resized image.newHeight- Height of the new resize image.
-
-
Method Detail
-
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.
-
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.
-
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