Click or drag to resize

Cv2.FillPoly Method (Mat, IEnumerable<IEnumerable<Point> > , Scalar, LineTypes, Int32, Nullable<Point> )

Fills the area bounded by one or more polygons

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static void FillPoly(
	Mat img,
	IEnumerable<IEnumerable<Point>> pts,
	Scalar color,
	LineTypes lineType = LineTypes.Link8,
	int shift = 0,
	Nullable<Point> offset = null
)

Parameters

img
Type: OpenCvSharp.Mat
Image
pts
Type: System.Collections.Generic.IEnumerable<IEnumerable<Point>>
Array of polygons, each represented as an array of points
color
Type: OpenCvSharp.Scalar
Polygon color
lineType (Optional)
Type: OpenCvSharp.LineTypes
Type of the polygon boundaries
shift (Optional)
Type: System.Int32
The number of fractional bits in the vertex coordinates
offset (Optional)
Type: System.Nullable<Point>
See Also