Package com.jhlabs.image
Class FlipFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.FlipFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which flips images or rotates by multiples of 90 degrees.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Rotate the image 180 degrees.static final int
Rotate the image 90 degrees counter-clockwise.static final int
Rotate the image 90 degrees clockwise.static final int
Flip the image horizontally.static final int
Flip the image horizontally and vertically.static final int
Flip the image vertically. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a FlipFilter which flips horizontally and vertically.FlipFilter
(int operation) Construct a FlipFilter. -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) int
Get the filter operation.void
setOperation
(int operation) Set the filter operation.toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
FLIP_H
public static final int FLIP_HFlip the image horizontally.- See Also:
-
FLIP_V
public static final int FLIP_VFlip the image vertically.- See Also:
-
FLIP_HV
public static final int FLIP_HVFlip the image horizontally and vertically.- See Also:
-
FLIP_90CW
public static final int FLIP_90CWRotate the image 90 degrees clockwise.- See Also:
-
FLIP_90CCW
public static final int FLIP_90CCWRotate the image 90 degrees counter-clockwise.- See Also:
-
FLIP_180
public static final int FLIP_180Rotate the image 180 degrees.- See Also:
-
-
Constructor Details
-
FlipFilter
public FlipFilter()Construct a FlipFilter which flips horizontally and vertically. -
FlipFilter
public FlipFilter(int operation) Construct a FlipFilter.- Parameters:
operation
- the filter operation
-
-
Method Details