http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Draws a rectangle with two opposite corners pt1 and pt2
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static void cvRectangle( IntPtr img, Point pt1, Point pt2, MCvScalar color, int thickness, LINE_TYPE lineType, int shift ) |
Visual Basic |
---|
Public Shared Sub cvRectangle ( _ img As IntPtr, _ pt1 As Point, _ pt2 As Point, _ color As MCvScalar, _ thickness As Integer, _ lineType As LINE_TYPE, _ shift As Integer _ ) |
Visual C++ |
---|
public: static void cvRectangle( IntPtr img, Point pt1, Point pt2, MCvScalar color, int thickness, LINE_TYPE lineType, int shift ) |
Parameters
- img
- Type: System..::..IntPtr
Image
- pt1
- Type: System.Drawing..::..Point
One of the rectangle vertices
- pt2
- Type: System.Drawing..::..Point
Opposite rectangle vertex
- color
- Type: Emgu.CV.Structure..::..MCvScalar
Line color
- thickness
- Type: System..::..Int32
Thickness of lines that make up the rectangle. Negative values make the function to draw a filled rectangle.
- lineType
- Type: Emgu.CV.CvEnum..::..LINE_TYPE
Type of the line
- shift
- Type: System..::..Int32
Number of fractional bits in the point coordinates