public class ImageAreaRedaction extends Redaction
Represents a redaction that places colored rectangle in given area of an image document.
Learn more
Constructor and Description |
---|
ImageAreaRedaction(Point topLeft,
RegionReplacementOptions options)
Initializes a new instance of ImageAreaRedaction class for redacting specific area size.
|
Modifier and Type | Method and Description |
---|---|
RedactorLogEntry |
applyTo(DocumentFormatInstance formatInstance)
Applies the redaction to a given format instance.
|
String |
getDescription()
Returns a string, describing the redaction and its parameters.
|
RegionReplacementOptions |
getOptions()
Gets the
RegionReplacementOptions options with color and area parameters. |
Point |
getTopLeft()
Gets the top-left position of the area to remove
|
public ImageAreaRedaction(Point topLeft, RegionReplacementOptions options)
Initializes a new instance of ImageAreaRedaction class for redacting specific area size.
topLeft
- Top-left area coordinatesoptions
- Area size and colorpublic final RegionReplacementOptions getOptions()
Gets the RegionReplacementOptions
options with color and area parameters.
RegionReplacementOptions
options with color and area parameters.public final Point getTopLeft()
Gets the top-left position of the area to remove
public String getDescription()
Returns a string, describing the redaction and its parameters.
getDescription
in class Redaction
public RedactorLogEntry applyTo(DocumentFormatInstance formatInstance)
Applies the redaction to a given format instance.