RegionReplacementOptions
Leave feedback
On this page
Inheritance: java.lang.Object
public class RegionReplacementOptions
Represents color and area parameters for image region replacement. See ImageAreaRedaction .
Learn more
- More details about image redactions: Image redactions
| Constructor | 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. |
| Method | Description |
|---|---|
| getFillColor() | Gets the color to fill the redacted area. |
| setFillColor(Color value) | Sets the color to fill the redacted area. |
| getSize() | Gets the rectangle with and height. |
| setSize(Dimension value) | Sets the rectangle with and height. |
public RegionReplacementOptions(Color fillColor, Dimension size)
Initializes a new instance of RegionReplacementOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fillColor | java.awt.Color | Color to fill the area |
| size | java.awt.Dimension | Filled area size |
public RegionReplacementOptions(Color fillColor, Font font, String expectedText)
Initializes a new instance of RegionReplacementOptions class which size matches given text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fillColor | java.awt.Color | Color to fill the area |
| font | java.awt.Font | Expected text font |
| expectedText | java.lang.String | Expected text |
public final Color getFillColor()
Gets the color to fill the redacted area.
Returns: java.awt.Color - The color to fill the redacted area.
public final void setFillColor(Color value)
Sets the color to fill the redacted area.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.awt.Color | The color to fill the redacted area. |
public final Dimension getSize()
Gets the rectangle with and height.
Returns: java.awt.Dimension - The rectangle with and height.
public final void setSize(Dimension value)
Sets the rectangle with and height.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.awt.Dimension | The rectangle with and height. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.