Package com.twelvemonkeys.image
Class PixelizeOp
java.lang.Object
com.twelvemonkeys.image.PixelizeOp
- All Implemented Interfaces:
BufferedImageOp
,RasterOp
PixelizeOp
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/image/PixelizeOp.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
void
setSourceRegion
(Rectangle pSourceRegion)
-
Field Details
-
pixelSizeX
private final int pixelSizeX -
pixelSizeY
private final int pixelSizeY -
sourceRegion
-
-
Constructor Details
-
PixelizeOp
public PixelizeOp(int pPixelSize) -
PixelizeOp
public PixelizeOp(int pPixelSizeX, int pPixelSizeY)
-
-
Method Details
-
getSourceRegion
-
setSourceRegion
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
-
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
-