Package com.twelvemonkeys.image
Class AreaAverageOp
java.lang.Object
com.twelvemonkeys.image.AreaAverageOp
- All Implemented Interfaces:
BufferedImageOp
,RasterOp
AreaAverageOp
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/image/AreaAverageOp.java#2 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clamp
(int pValue) createCompatibleDestImage
(BufferedImage src, ColorModel destCM) filter
(BufferedImage src, BufferedImage dest) filter
(Raster src, WritableRaster dest) private WritableRaster
filterImpl
(Raster src, WritableRaster dest) getBounds2D
(BufferedImage src) getBounds2D
(Raster src) getPoint2D
(Point2D srcPt, Point2D dstPt) static void
private void
resample
(BufferedImage pSrc, BufferedImage pDest, AffineTransform pXform) void
setSourceRegion
(Rectangle pSourceRegion)
-
Field Details
-
width
private final int width -
height
private final int height -
sourceRegion
-
-
Constructor Details
-
AreaAverageOp
public AreaAverageOp(int pWidth, int pHeight)
-
-
Method Details
-
getSourceRegion
-
setSourceRegion
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
-
resample
-
filter
-
filterImpl
-
clamp
private static int clamp(int pValue) -
getRenderingHints
- Specified by:
getRenderingHints
in interfaceBufferedImageOp
- Specified by:
getRenderingHints
in interfaceRasterOp
-
createCompatibleDestImage
- Specified by:
createCompatibleDestImage
in interfaceBufferedImageOp
-
createCompatibleDestRaster
- Specified by:
createCompatibleDestRaster
in interfaceRasterOp
-
getBounds2D
- Specified by:
getBounds2D
in interfaceRasterOp
-
getBounds2D
- Specified by:
getBounds2D
in interfaceBufferedImageOp
-
getPoint2D
- Specified by:
getPoint2D
in interfaceBufferedImageOp
- Specified by:
getPoint2D
in interfaceRasterOp
-
main
- Throws:
IOException
-