Catalano.Imaging.Filters
Class ResizeBicubic
- java.lang.Object
-
- Catalano.Imaging.Filters.ResizeBicubic
-
- All Implemented Interfaces:
- IApply, IApplyInPlace
public class ResizeBicubic extends java.lang.Object implements IApply, IApplyInPlace
Resize image using bicubic interpolation algorithm.The class implements image resizing filter using bicubic interpolation algorithm. It uses bicubic kernel W(x) as described on http://en.wikipedia.org/wiki/Bicubic_interpolation#Bicubic_convolution_algorithm (coefficient a is set to -0.5).
-
-
Constructor Summary
Constructors Constructor and Description ResizeBicubic(int newWidth, int newHeight)Initialize a new instance of the ResizeBicubic 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
-
ResizeBicubic
public ResizeBicubic(int newWidth, int newHeight)Initialize a new instance of the ResizeBicubic 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