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 intRotate the image 180 degrees.static final intRotate the image 90 degrees counter-clockwise.static final intRotate the image 90 degrees clockwise.static final intFlip the image horizontally.static final intFlip the image horizontally and vertically.static final intFlip 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) intGet the filter operation.voidsetOperation(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
-
setOperation
public void setOperation(int operation) Set the filter operation.- Parameters:
operation- the filter operation- See Also:
-
getOperation
public int getOperation()Get the filter operation.- Returns:
- the filter operation
- See Also:
-
filter
-
toString
-