RotateAngleSearchCriteria

RotateAngleSearchCriteria class

Represents criteria allowing filtering by watermark rotate angle.

public class RotateAngleSearchCriteria : SearchCriteria

Constructors

Name Description
RotateAngleSearchCriteria(double, double) Initializes a new instance of the RotateAngleSearchCriteria class with a starting angle and a ending angle.

Properties

Name Description
MaximumAngle { get; } Gets the ending angle in degrees.
MinimumAngle { get; } Gets the starting angle in degrees.

Methods

Name Description
And(SearchCriteria) Combines this SearchCriteria with other criteria using logical AND operator.
Not() Negates this SearchCriteria.
Or(SearchCriteria) Combines this SearchCriteria with other criteria using logical OR operator.

Remarks

Learn more:

Examples

Find and remove watermarks using search criteria.

using (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(new Regex("^Test watermark$"));
    PossibleWatermarkCollection watermarks = watermarker.Search(textCriteria.And(widthRange.Or(rotateAngle)));
    watermarks.Clear();
    watermarker.Save();
}

See Also