Package com.itextpdf.pdfcleanup.util
Class CleanUpImageUtil
java.lang.Object
com.itextpdf.pdfcleanup.util.CleanUpImageUtil
Utility class providing methods to handle images and work with graphics.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Exception is thrown when errors occur during handling and cleaning up images. -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
cleanUpImage
(byte[] imageBytes, List areasToBeCleaned) Clean up an image using a List of Rectangles that need to be redacted.
-
Method Details
-
cleanUpImage
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.
-