Class WholeImageFilter
java.lang.Object
org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.AbstractBufferedImageOp
org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.WholeImageFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
- Direct Known Subclasses:
QuantizeFilter
A filter which acts as a superclass for filters which need to have the whole image in memory
to do their stuff.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) protected abstract int[]
filterPixels
(int width, int height, int[] inPixels, Rectangle transformedSpace) Actually filter the pixels.protected void
transformSpace
(Rectangle rect) Calculate output bounds for given input bounds.Methods inherited from class org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
transformedSpace
The output image bounds. -
originalSpace
The input image bounds.
-
-
Constructor Details
-
WholeImageFilter
public WholeImageFilter()Construct a WholeImageFilter.
-
-
Method Details
-
filter
-
transformSpace
Calculate output bounds for given input bounds.- Parameters:
rect
- input and output rectangle
-
filterPixels
protected abstract int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace) Actually filter the pixels.- Parameters:
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds- Returns:
- the output pixels
-