Table of Contents

Constructor Rect

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Rect(int, int, int, int)

Stores a set of four integers that represent the location and size of a rectangle

public Rect(int X, int Y, int Width, int Height)

Parameters

X int

The x-coordinate of the upper-left corner of the rectangle.

Y int

The y-coordinate of the upper-left corner of the rectangle.

Width int

The width of the rectangle.

Height int

The height of the rectangle.

Rect(Point, Size)

Initializes a new instance of the Rectangle class with the specified location and size.

public Rect(Point location, Size size)

Parameters

location Point

A Point that represents the upper-left corner of the rectangular region.

size Size

A Size that represents the width and height of the rectangular region.