| Cv2FillConvexPoly Method (Mat, IEnumerablePoint, Scalar, LineTypes, Int32) |
Fills a convex polygon.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void FillConvexPoly(
Mat img,
IEnumerable<Point> pts,
Scalar color,
LineTypes lineType = LineTypes.Link8,
int shift = 0
)
Public Shared Sub FillConvexPoly (
img As Mat,
pts As IEnumerable(Of Point),
color As Scalar,
Optional lineType As LineTypes = LineTypes.Link8,
Optional shift As Integer = 0
)
public:
static void FillConvexPoly(
Mat^ img,
IEnumerable<Point>^ pts,
Scalar color,
LineTypes lineType = LineTypes::Link8,
int shift = 0
)
static member FillConvexPoly :
img : Mat *
pts : IEnumerable<Point> *
color : Scalar *
?lineType : LineTypes *
?shift : int
(* Defaults:
let _lineType = defaultArg lineType LineTypes.Link8
let _shift = defaultArg shift 0
*)
-> unit
Parameters
- img
- Type: OpenCvSharpMat
Image - pts
- Type: System.Collections.GenericIEnumerablePoint
The polygon vertices - color
- Type: OpenCvSharpScalar
Polygon color - lineType (Optional)
- Type: OpenCvSharpLineTypes
Type of the polygon boundaries - shift (Optional)
- Type: SystemInt32
The number of fractional bits in the vertex coordinates
See Also