Rect Structure OpenCvSharp Class Library

[Missing <summary> documentation for "T:OpenCvSharp.CPlusPlus.Rect"]

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[SerializableAttribute]
public struct Rect : IEquatable<Rect>

The Rect type exposes the following members.

Constructors

  NameDescription
Public methodRect(Point, Size)
Initializes a new instance of the Rectangle class with the specified location and size.
Public methodRect(Int32, Int32, Int32, Int32)
Initializes a new instance of the Rectangle class with the specified location and size.
Top
Properties

  NameDescription
Public propertyBottom
Gets the y-coordinate that is the sum of the Y and Height property values of this Rect structure.
Public propertyBottomRight
Coordinate of the right-most rectangle corner [Point(X+Width, Y+Height)]
Public propertyLeft
Gets the x-coordinate of the left edge of this Rect structure.
Public propertyLocation
Coordinate of the left-most rectangle corner [Point(X, Y)]
Public propertyRight
Gets the x-coordinate that is the sum of X and Width property values of this Rect structure.
Public propertySize
Size of the rectangle [CvSize(Width, Height)]
Public propertyTop
Gets the y-coordinate of the top edge of this Rect structure.
Public propertyTopLeft
Coordinate of the left-most rectangle corner [Point(X, Y)]
Top
Methods

  NameDescription
Public methodContains(Point)
Determines if the specified point is contained within the rectangular region defined by this Rectangle.
Public methodContains(Rect)
Determines if the specified rectangle is contained within the rectangular region defined by this Rectangle.
Public methodContains(Int32, Int32)
Determines if the specified point is contained within the rectangular region defined by this Rectangle.
Public methodEquals(Object)
Specifies whether this object contains the same members as the specified Object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Rect)
Specifies whether this object contains the same members as the specified Object.
Public methodStatic memberFromLTRB
Creates a Rectangle structure with the specified edge locations.
Public methodGetHashCode
Returns a hash code for this object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodInflate(Size)
Inflates this Rect by the specified amount.
Public methodInflate(Int32, Int32)
Inflates this Rect by the specified amount.
Public methodStatic memberInflate(Rect, Int32, Int32)
Creates and returns an inflated copy of the specified Rect structure.
Public methodIntersect(Rect)
Determines the Rect structure that represents the intersection of two rectangles.
Public methodStatic memberIntersect(Rect, Rect)
Determines the Rect structure that represents the intersection of two rectangles.
Public methodIntersectsWith
Determines if this rectangle intersects with rect.
Public methodToString
Converts this object to a human readable string.
(Overrides ValueTypeToString.)
Public methodUnion(Rect)
Gets a Rect structure that contains the union of two Rect structures.
Public methodStatic memberUnion(Rect, Rect)
Gets a Rect structure that contains the union of two Rect structures.
Top
Operators

  NameDescription
Public operatorStatic memberAddition(Rect, Point)
Shifts rectangle by a certain offset
Public operatorStatic memberAddition(Rect, Size)
Expands or shrinks rectangle by a certain amount
Public operatorStatic memberBitwiseAnd
Determines the Rect structure that represents the intersection of two rectangles.
Public operatorStatic memberBitwiseOr
Gets a Rect structure that contains the union of two Rect structures.
Public operatorStatic memberEquality
Compares two Rect objects. The result specifies whether the members of each object are equal.
Public operatorStatic member(CvRect to Rect)
Public operatorStatic member(Rect to CvRect)
Public operatorStatic memberInequality
Compares two Rect objects. The result specifies whether the members of each object are unequal.
Public operatorStatic memberSubtraction(Rect, Point)
Shifts rectangle by a certain offset
Public operatorStatic memberSubtraction(Rect, Size)
Expands or shrinks rectangle by a certain amount
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
Represents a Rect structure with its properties left uninitialized.
Public fieldHeight
Public fieldStatic memberSizeOf
sizeof(Rect)
Public fieldWidth
Public fieldX
Public fieldY
Top
See Also

Reference