Class ImageMaskArea

java.lang.Object
com.hp.lft.sdk.ImageMaskArea

public class ImageMaskArea extends Object
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.
  • Constructor Details

    • ImageMaskArea

      public ImageMaskArea()
      Initializes a new instance of the ImageMaskArea class that does not receive any rectangles as parameters.
    • ImageMaskArea

      public ImageMaskArea(Rectangle includeRectangle, Rectangle excludeRectangle)
      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

      public Rectangle getIncludeRectangle()
      Gets the rectangle area to include in the mask image.
      Returns:
      The rectangle area to include in the mask image.
    • getExcludeRectangle

      public Rectangle 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

      public void setIncludeRectangle(Rectangle includeRectangle)
      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

      public void setExcludeRectangle(Rectangle excludeRectangle)
      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.