Draws a rectangle with two opposite corners pt1 and pt2

C# | Visual Basic | Visual C++ |
public static void cvRectangle( IntPtr img, MCvPoint pt1, MCvPoint pt2, MCvScalar color, int thickness, LINE_TYPE lineType, int shift )

- img (IntPtr)
- Image
- pt1 (MCvPoint)
- One of the rectangle vertices
- pt2 (MCvPoint)
- Opposite rectangle vertex
- color (MCvScalar)
- Line color
- thickness (Int32)
- Thickness of lines that make up the rectangle. Negative values make the function to draw a filled rectangle.
- lineType (LINE_TYPE)
- Type of the line
- shift (Int32)
- Number of fractional bits in the point coordinates