Rect Structure |
Namespace: OpenCvSharp
The Rect type exposes the following members.
Name | Description | |
---|---|---|
Rect(Point, Size) |
Initializes a new instance of the Rectangle class with the specified location and size.
| |
Rect(Int32, Int32, Int32, Int32) |
Initializes a new instance of the Rectangle class with the specified location and size.
|
Name | Description | |
---|---|---|
Bottom |
Gets the y-coordinate that is the sum of the Y and Height property values of this Rect structure.
| |
BottomRight |
Coordinate of the right-most rectangle corner [Point(X+Width, Y+Height)]
| |
Left |
Gets the x-coordinate of the left edge of this Rect structure.
| |
Location |
Coordinate of the left-most rectangle corner [Point(X, Y)]
| |
Right |
Gets the x-coordinate that is the sum of X and Width property values of this Rect structure.
| |
Size |
Size of the rectangle [CvSize(Width, Height)]
| |
Top |
Gets the y-coordinate of the top edge of this Rect structure.
| |
TopLeft |
Coordinate of the left-most rectangle corner [Point(X, Y)]
|
Name | Description | |
---|---|---|
Contains(Point) |
Determines if the specified point is contained within the rectangular region defined by this Rectangle.
| |
Contains(Rect) |
Determines if the specified rectangle is contained within the rectangular region defined by this Rectangle.
| |
Contains(Int32, Int32) |
Determines if the specified point is contained within the rectangular region defined by this Rectangle.
| |
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) | |
Equals(Rect) | Indicates whether the current object is equal to another object of the same type. | |
FromLTRB |
Creates a Rectangle structure with the specified edge locations.
| |
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Inflate(Size) |
Inflates this Rect by the specified amount.
| |
Inflate(Int32, Int32) |
Inflates this Rect by the specified amount.
| |
Inflate(Rect, Int32, Int32) |
Creates and returns an inflated copy of the specified Rect structure.
| |
Intersect(Rect) |
Determines the Rect structure that represents the intersection of two rectangles.
| |
Intersect(Rect, Rect) |
Determines the Rect structure that represents the intersection of two rectangles.
| |
IntersectsWith |
Determines if this rectangle intersects with rect.
| |
ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString.) | |
Union(Rect) |
Gets a Rect structure that contains the union of two Rect structures.
| |
Union(Rect, Rect) |
Gets a Rect structure that contains the union of two Rect structures.
|
Name | Description | |
---|---|---|
Addition(Rect, Point) |
Shifts rectangle by a certain offset
| |
Addition(Rect, Size) |
Expands or shrinks rectangle by a certain amount
| |
BitwiseAnd |
Determines the Rect structure that represents the intersection of two rectangles.
| |
BitwiseOr |
Gets a Rect structure that contains the union of two Rect structures.
| |
Equality |
Compares two Rect objects. The result specifies whether the members of each object are equal.
| |
Inequality |
Compares two Rect objects. The result specifies whether the members of each object are unequal.
| |
Subtraction(Rect, Point) |
Shifts rectangle by a certain offset
| |
Subtraction(Rect, Size) |
Expands or shrinks rectangle by a certain amount
|
Name | Description | |
---|---|---|
Empty |
Represents a Rect structure with its properties left uninitialized.
| |
Height | ||
Width | ||
X | ||
Y |