Class CleanUpImageUtil

java.lang.Object
com.itextpdf.pdfcleanup.util.CleanUpImageUtil

public final class CleanUpImageUtil extends Object
Utility class providing methods to handle images and work with graphics.
  • Method Details

    • cleanUpImage

      public static byte[] cleanUpImage (byte[] imageBytes, List areasToBeCleaned)
      Clean up an image using a List of Rectangles that need to be redacted.
      Parameters:
      imageBytes - the image to be cleaned up
      areasToBeCleaned - the List of Rectangles that need to be redacted out of the image
      Returns:
      an array of bytes of the image with cleaned areas.