Package com.hp.lft.sdk
Class ImageMaskArea
java.lang.Object
com.hp.lft.sdk.ImageMaskArea
A class representing image mask rectangle areas. You can use it to define a rectangle area to include and/or to exclude.
If include and exclude areas overlap, the exclude overrides the include.
If include and exclude areas overlap, the exclude overrides the include.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ImageMaskArea class that does not receive any rectangles as parameters.ImageMaskArea
(Rectangle includeRectangle, Rectangle excludeRectangle) Initializes a new instance of the ImageMaskArea class that can get include and exclude areas. -
Method Summary
Modifier and TypeMethodDescriptionGets the rectangle area to exclude from the mask image.Gets the rectangle area to include in the mask image.void
setExcludeRectangle
(Rectangle excludeRectangle) Sets the rectangle area to exclude from the mask image.void
setIncludeRectangle
(Rectangle includeRectangle) Sets the rectangle area to include in the mask image.
-
Constructor Details
-
ImageMaskArea
public ImageMaskArea()Initializes a new instance of the ImageMaskArea class that does not receive any rectangles as parameters. -
ImageMaskArea
Initializes a new instance of the ImageMaskArea class that can get include and exclude areas.- Parameters:
includeRectangle
- The area to include in the mask.excludeRectangle
- The area to exclude from the mask.
-
-
Method Details
-
getIncludeRectangle
Gets the rectangle area to include in the mask image.- Returns:
- The rectangle area to include in the mask image.
-
getExcludeRectangle
Gets the rectangle area to exclude from the mask image.
If include and exclude areas overlap, the exclude overrides the include.- Returns:
- The rectangle area to exclude from the mask image.
-
setIncludeRectangle
Sets the rectangle area to include in the mask image.
If include and exclude areas overlap, the exclude overrides the include.- Parameters:
includeRectangle
- The area to include in the mask.
-
setExcludeRectangle
Sets the rectangle area to exclude from the mask image.
If include and exclude areas overlap, the exclude overrides the include.- Parameters:
excludeRectangle
- The area to exclude from the mask.
-