Package org.web3d.image
Class AreaAveragingScaleFilter
java.lang.Object
org.web3d.image.AreaAveragingScaleFilter
- All Implemented Interfaces:
ScaleFilter
A ScaleFilter implementation for scaling NIOBufferImages using area averaging.
- Version:
- $Revision: 1.3 $
- Author:
- Rex Melton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScaledImage
(int dstWidth, int dstHeight) Return an image scaled to the specified width and height
-
Constructor Details
-
AreaAveragingScaleFilter
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:
dstWidth
- The width of the returned imagedstHeight
- The height of the returned image- Returns:
- The scaled image
-