Class ImageMaskArea
A class representing image mask rectangle areas. You can use it to define a rectangle area to include and/or to exclude.
public class ImageMaskArea
- Inheritance
-
ImageMaskArea
- Inherited Members
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.
public ImageMaskArea()
ImageMaskArea(Rectangle, Rectangle)
Initializes a new instance of the ImageMaskArea class that can get include and exclude areas.
public ImageMaskArea(Rectangle includeRectangle, Rectangle excludeRectangle)
Parameters
includeRectangleRectangleThe area to include in the mask.
excludeRectangleRectangleThe area to exclude from the mask.
Properties
ExcludeRectangle
The rectangle area to exclude from the mask image.
public Rectangle ExcludeRectangle { get; set; }
Property Value
Remarks
If include and exclude areas overlap, the exclude overrides the include.
IncludeRectangle
The rectangle area to include in the mask image.
public Rectangle IncludeRectangle { get; set; }
Property Value
Remarks
If include and exclude areas overlap, the exclude overrides the include.