com.groupdocs.redaction.integration

Class RedactableImage

    • Constructor Detail

      • RedactableImage

        public RedactableImage(IImageFormatInstance img)

        Creates a new instace using an object, implementing IImageFormatInstance interface.

        Parameters:
        img - An instance, implementing IImageFormatInstance interface
      • RedactableImage

        public RedactableImage(IMultipleAreaRedactable img)

        Creates a new instace using an object, implementing IMultipleAreaRedactable interface.

        Parameters:
        img - An instance, implementing IMultipleAreaRedactable interface
    • Method Detail

      • editAreas

        public final RedactionResult editAreas(Rectangle[] rectangles,
                                Color boxColor)

        Redacts multiple image areas at once with the same color.

        Specified by:
        editAreas in interface IMultipleAreaRedactable
        Parameters:
        rectangles - An array of rectangle areas
        boxColor - Color to fill the areas
        Returns:
        Image areas redaction result
      • editArea

        public final RedactionResult editArea(Point topLeft,
                               RegionReplacementOptions options)

        Replaces the area at given point with a rectangle of specific color and size.

        Specified by:
        editArea in interface IImageFormatInstance
        Parameters:
        topLeft - Top-left corner coordinates of filled area
        options - Color and size settings
        Returns:
        Image area redaction result