public class RotateAngleSearchCriteria extends SearchCriteria
Learn more:
The following example demonstrates how to find and remove watermarks using search criteria.
Watermarker watermarker = new Watermarker("C:\\test.some_ext"); SizeSearchCriteria widthRange = new SizeSearchCriteria(Dimension.Width, 50, 100); RotateAngleSearchCriteria rotateAngle = new RotateAngleSearchCriteria(0, 45); TextSearchCriteria textCriteria = new TextSearchCriteria(Pattern.compile("^Test watermark$")); PossibleWatermarkCollection watermarks = watermarker.search(textCriteria.and(widthRange.or(rotateAngle))); watermarks.clear(); watermarker.save("C:\\modified_test.some_ext"); watermarker.close();
| Constructor and Description |
|---|
RotateAngleSearchCriteria(double minAngle,
double maxAngle)
Initializes a new instance of the
class
with a starting angle and a ending angle. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ICriteriaVisitor visitor) |
double |
getMaximumAngle()
Gets the ending angle in degrees.
|
double |
getMinimumAngle()
Gets the starting angle in degrees.
|
boolean |
isSatisfiedBy(PossibleWatermark candidate) |
and, not, orpublic RotateAngleSearchCriteria(double minAngle,
double maxAngle)
RotateAngleSearchCriteria class
with a starting angle and a ending angle.minAngle - The starting angle in degrees.maxAngle - The ending angle in degrees.public void accept(ICriteriaVisitor visitor)
accept in class SearchCriteriapublic final double getMaximumAngle()
Gets the ending angle in degrees.
public final double getMinimumAngle()
Gets the starting angle in degrees.
public boolean isSatisfiedBy(PossibleWatermark candidate)
isSatisfiedBy in class SearchCriteriaCopyright © 2026. All rights reserved.