com.groupdocs.redaction.redactions

Class RegionReplacementOptions



  • public class RegionReplacementOptions
    extends Object

    Represents color and area parameters for image region replacement. See ImageAreaRedaction.

    • Constructor Detail

      • RegionReplacementOptions

        public RegionReplacementOptions(Color fillColor,
                                Dimension size)

        Initializes a new instance of RegionReplacementOptions class.

        Parameters:
        fillColor - Color to fill the area
        size - Filled area size
      • RegionReplacementOptions

        public RegionReplacementOptions(Color fillColor,
                                Font font,
                                String expectedText)

        Initializes a new instance of RegionReplacementOptions class which size matches given text.

        Parameters:
        fillColor - Color to fill the area
        font - Expected text font
        expectedText - Expected text
    • Method Detail

      • getFillColor

        public final Color getFillColor()

        Gets the color to fill the redacted area.

        Returns:
        The color to fill the redacted area.
      • setFillColor

        public final void setFillColor(Color value)

        Sets the color to fill the redacted area.

        Parameters:
        value - The color to fill the redacted area.
      • getSize

        public final Dimension getSize()

        Gets the rectangle with and height.

        Returns:
        The rectangle with and height.
      • setSize

        public final void setSize(Dimension value)

        Sets the rectangle with and height.

        Parameters:
        value - The rectangle with and height.