Table of Contents

Class ImageMaskArea

A class representing image mask rectangle areas. You can use it to define a rectangle area to include and/or to exclude.

Inheritance
ImageMaskArea
Namespace: HP.LFT.SDK.Utils
Assembly: HP.LFT.SDK.dll
Syntax
public class ImageMaskArea
Remarks

If include and exclude areas overlap, the exclude overrides the include.

Constructors

ImageMaskArea()

Initializes a new instance of the ImageMaskArea class that does not receive any rectangles as parameters. This will create a mask area including the entire image area.

Declaration
public ImageMaskArea()

ImageMaskArea(Rectangle, Rectangle)

Initializes a new instance of the ImageMaskArea class that can get include and exclude areas.

Declaration
public ImageMaskArea(Rectangle includeRectangle, Rectangle excludeRectangle)
Parameters
Type Name Description
Rectangle includeRectangle

The area to include in the mask.

Rectangle excludeRectangle

The area to exclude from the mask.

Properties

ExcludeRectangle

The rectangle area to exclude from the mask image.

Declaration
public Rectangle ExcludeRectangle { get; set; }
Property Value
Type Description
Rectangle
Remarks

If include and exclude areas overlap, the exclude overrides the include.

IncludeRectangle

The rectangle area to include in the mask image.

Declaration
public Rectangle IncludeRectangle { get; set; }
Property Value
Type Description
Rectangle
Remarks

If include and exclude areas overlap, the exclude overrides the include.