﻿Rectangle(T) Class
Emgu CV Library Documentation
Rectangle<(Of <(T>)>) Class
NamespacesEmgu.CVRectangle<(Of <(T>)>)

www.emgu.com/wiki
A rectangle
Declaration Syntax
 C# Visual Basic Visual C++
```[SerializableAttribute]
public class Rectangle<T> : IConvexPolygon<T>
where T : new(), IComparable
```
```<SerializableAttribute> _
Public Class Rectangle(Of T As {New, IComparable}) _
Implements IConvexPolygon(Of T)```
```[SerializableAttribute]
generic<typename T>
where T : gcnew(), IComparable
public ref class Rectangle : IConvexPolygon<T>```
Generic Template Parameters
T

[Missing <typeparam name="T"/> documentation for "T:Emgu.CV.Rectangle`1"]

Members
 All Members Constructors Methods Properties Fields PublicProtected InstanceStatic DeclaredInherited
IconMemberDescription
Rectangle<(Of <(T>)>)()()()
Create a rectangle with default values

Rectangle<(Of <(T>)>)(Point2D<(Of <(T>)>), Point2D<(Of <(T>)>))
Create a rectangle with the specific center, with and height

Rectangle<(Of <(T>)>)(Point2D<(Of <(T>)>), T, T)
Create a rectangle with the specific center, with and height

Rectangle<(Of <(T>)>)(T, T, T, T)
Create a rectangle with the specific left, right, top bottom corrdinates

Rectangle<(Of <(T>)>)(MCvRect)
Create a rectangle from a CvRect structure

_size
The size: width & height

Area
The area of the rectangle

Bottom
The bottom most coordinate

BottomLeft
The bottom left corner of the rectangle

BottomRight
The bottom right corner of the rectangle

Center
The center of the rectangle

Convert<(Of <(TOther>)>)()()()
Convert the current rectangle to different depth

Equals(Rectangle<(Of <(T>)>))
Compare two rectangle, if equal, return true, otherwise return false

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Height
Get or Set the height of the rectangle

Left
The left most coordinate

MCvRect
The CvRect representation of this rectangle

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Right
The right most coordinate

Size
The Size (width and height) of this rectangle

Top
The top most coordinate

TopLeft
The top left corner of the rectangle

TopRight
The top right corner of the rectangle

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Vertices
Get the vertices of this triangle

Width
Get or Set the width of the rectangle

Inheritance Hierarchy
 Object Rectangle<(Of <(T>)>) Box2D<(Of <(T>)>) Cross2D<(Of <(T>)>)

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)