| MatRectangle Method (Rect, Scalar, Int32, LineTypes, Int32) | 
        
         
            Draws simple, thick or filled rectangle
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic void Rectangle(
	Rect rect,
	Scalar color,
	int thickness = 1,
	LineTypes lineType = LineTypes.Link8,
	int shift = 0
)
Public Sub Rectangle ( 
	rect As Rect,
	color As Scalar,
	Optional thickness As Integer = 1,
	Optional lineType As LineTypes = LineTypes.Link8,
	Optional shift As Integer = 0
)
public:
void Rectangle(
	Rect rect, 
	Scalar color, 
	int thickness = 1, 
	LineTypes lineType = LineTypes::Link8, 
	int shift = 0
)
member Rectangle : 
        rect : Rect * 
        color : Scalar * 
        ?thickness : int * 
        ?lineType : LineTypes * 
        ?shift : int 
(* Defaults:
        let _thickness = defaultArg thickness 1
        let _lineType = defaultArg lineType LineTypes.Link8
        let _shift = defaultArg shift 0
*)
-> unit 
function Rectangle(rect, color, thickness, lineType, shift);
Parameters
- rect
- Type: OpenCvSharpRect
 Rectangle.
- color
- Type: OpenCvSharpScalar
 Line color (RGB) or brightness (grayscale image).
- thickness (Optional)
- Type: SystemInt32
 Thickness of lines that make up the rectangle. Negative values make the function to draw a filled rectangle. [By default this is 1]
- lineType (Optional)
- Type: OpenCvSharpLineTypes
 Type of the line, see cvLine description. [By default this is LineType.Link8]
- shift (Optional)
- Type: SystemInt32
 Number of fractional bits in the point coordinates. [By default this is 0]
 See Also
See Also