public class ImageInpaintingPossibleWatermark extends PossibleWatermark
Represents a manually specified image region that should be inpainted (filled using surrounding pixels).
| Constructor and Description |
|---|
ImageInpaintingPossibleWatermark()
Initializes a new instance of the
class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getMethod()
Gets the inpainting algorithm.
|
ContentPart |
getParent()
Gets the parent of this
. |
int |
getPatchSize()
Gets patch size used by the algorithm (odd, 5-11).
|
Point[][] |
getPolygons()
Gets polygonal regions to be inpainted, in image pixels.
|
Rectangle[] |
getRectangles()
Gets rectangular areas to be inpainted, in image pixels.
|
boolean |
hasAnyRegion() |
void |
remove() |
void |
setMethod(int value)
Sets the inpainting algorithm.
|
void |
setPatchSize(int value)
Sets patch size used by the algorithm.
|
void |
setPolygons(Point[][] value)
Sets polygonal regions to be inpainted.
|
void |
setRectangles(Rectangle[] value)
Sets rectangular areas to be inpainted.
|
void |
validateRegionConfiguration() |
getCollection, getFormattedTextFragments, getHeight, getImageData, getImageInternally, getImageSize, getPageNumber, getRotateAngle, getText, getUnitOfMeasurement, getWidth, getX, getY, setCollection, setImageData, setTextpublic ImageInpaintingPossibleWatermark()
Initializes a new instance of the class.
ImageInpaintingPossibleWatermark
public int getMethod()
Gets the inpainting algorithm.
Default is .
InpaintingMethod.PatchBased
public ContentPart getParent()
Gets the parent of this .
Always returns ImageInpaintingPossibleWatermarknull because the region is specified manually.
getParent in class PossibleWatermarkImageInpaintingPossibleWatermark.public int getPatchSize()
Gets patch size used by the algorithm (odd, 5-11). Default is 7.
For this is used as HalfPatchSize.
InpaintingMethod.Telea
public Point[][] getPolygons()
Gets polygonal regions to be inpainted, in image pixels.
Each polygon is an array of vertices.
Either or getRectangles() must be specified, but not both.
getPolygons()
public Rectangle[] getRectangles()
Gets rectangular areas to be inpainted, in image pixels.
Either or getRectangles() must be specified, but not both.
getPolygons()
public final boolean hasAnyRegion()
public void remove()
remove in class PossibleWatermarkpublic void setMethod(int value)
Sets the inpainting algorithm.
value - The inpainting algorithm.public void setPatchSize(int value)
Sets patch size used by the algorithm.
value - The patch size.public void setPolygons(Point[][] value)
Sets polygonal regions to be inpainted.
value - The array of polygons.public void setRectangles(Rectangle[] value)
Sets rectangular areas to be inpainted.
value - The array of rectangles.public final void validateRegionConfiguration()
Copyright © 2026. All rights reserved.