public class RegionReplacementOptions extends Object
Represents color and area parameters for image region replacement. See ImageAreaRedaction.
Learn more
| Constructor and Description |
|---|
RegionReplacementOptions(Color fillColor,
Dimension size)
Initializes a new instance of RegionReplacementOptions class.
|
RegionReplacementOptions(Color fillColor,
Font font,
String expectedText)
Initializes a new instance of RegionReplacementOptions class which size matches given text.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getFillColor()
Gets the color to fill the redacted area.
|
Dimension |
getSize()
Gets the rectangle with and height.
|
void |
setFillColor(Color value)
Sets the color to fill the redacted area.
|
void |
setSize(Dimension value)
Sets the rectangle with and height.
|
public RegionReplacementOptions(Color fillColor, Dimension size)
Initializes a new instance of RegionReplacementOptions class.
fillColor - Color to fill the areasize - Filled area sizepublic final Color getFillColor()
Gets the color to fill the redacted area.
public final Dimension getSize()
Gets the rectangle with and height.
public final void setFillColor(Color value)
Sets the color to fill the redacted area.
value - The color to fill the redacted area.public final void setSize(Dimension value)
Sets the rectangle with and height.
value - The rectangle with and height.Copyright © 2025. All rights reserved.