Package org.web3d.image
Class BilinearScaleFilter
java.lang.Object
org.web3d.image.BilinearScaleFilter
- All Implemented Interfaces:
ScaleFilter
A ScaleFilter implementation for scaling NIOBufferImages.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScaledImage
(int destWidth, int destHeight) Return an image scaled to the specified width and height
-
Constructor Details
-
BilinearScaleFilter
Constructor- Parameters:
image
- The source image that will be rescaled
-
-
Method Details
-
getScaledImage
Return an image scaled to the specified width and height- Specified by:
getScaledImage
in interfaceScaleFilter
- Parameters:
destWidth
- The width of the returned imagedestHeight
- The height of the returned image- Returns:
- The scaled image
-