Package com.jhlabs.image
Class FlipFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.FlipFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class FlipFilter extends AbstractBufferedImageOp
A filter which flips images or rotates by multiples of 90 degrees.
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLIP_180
Rotate the image 180 degrees.static int
FLIP_90CCW
Rotate the image 90 degrees counter-clockwise.static int
FLIP_90CW
Rotate the image 90 degrees clockwise.static int
FLIP_H
Flip the image horizontally.static int
FLIP_HV
Flip the image horizontally and vertically.static int
FLIP_V
Flip the image vertically.
-
Constructor Summary
Constructors Constructor Description FlipFilter()
Construct a FlipFilter which flips horizontally and vertically.FlipFilter(int operation)
Construct a FlipFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
int
getOperation()
Get the filter operation.void
setOperation(int operation)
Set the filter operation.java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Field Detail
-
FLIP_H
public static final int FLIP_H
Flip the image horizontally.- See Also:
- Constant Field Values
-
FLIP_V
public static final int FLIP_V
Flip the image vertically.- See Also:
- Constant Field Values
-
FLIP_HV
public static final int FLIP_HV
Flip the image horizontally and vertically.- See Also:
- Constant Field Values
-
FLIP_90CW
public static final int FLIP_90CW
Rotate the image 90 degrees clockwise.- See Also:
- Constant Field Values
-
FLIP_90CCW
public static final int FLIP_90CCW
Rotate the image 90 degrees counter-clockwise.- See Also:
- Constant Field Values
-
FLIP_180
public static final int FLIP_180
Rotate the image 180 degrees.- See Also:
- Constant Field Values
-
-
Method Detail
-
setOperation
public void setOperation(int operation)
Set the filter operation.- Parameters:
operation
- the filter operation- See Also:
getOperation()
-
getOperation
public int getOperation()
Get the filter operation.- Returns:
- the filter operation
- See Also:
setOperation(int)
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-