OpenCvSharp.Cv2.FillPoly C# (CSharp) Method

FillPoly() public static method

Fills the area bounded by one or more polygons
public static FillPoly ( OpenCvSharp.InputOutputArray img, InputArray pts, Scalar color, LineTypes lineType = LineTypes.Link8, int shift, System.Point offset = null ) : void
img OpenCvSharp.InputOutputArray Image
pts InputArray Array of polygons, each represented as an array of points
color Scalar Polygon color
lineType LineTypes Type of the polygon boundaries
shift int The number of fractional bits in the vertex coordinates
offset System.Point
return void
        public static void FillPoly(
            InputOutputArray img, InputArray pts, Scalar color,
            LineTypes lineType = LineTypes.Link8, int shift = 0, Point? offset = null)
        {
            if (img == null)
                throw new ArgumentNullException(nameof(img));
            if (pts == null) 
                throw new ArgumentNullException(nameof(pts));
            img.ThrowIfDisposed();
            pts.ThrowIfDisposed();
            Point offset0 = offset.GetValueOrDefault(new Point());

            NativeMethods.imgproc_fillPoly_InputOutputArray(
                img.CvPtr, pts.CvPtr, color, (int)lineType, shift, offset0);

            GC.KeepAlive(pts);
            img.Fix();
        }
        #endregion

Same methods

Cv2::FillPoly ( OpenCvSharp.Mat img, IEnumerable pts, Scalar color, LineTypes lineType = LineTypes.Link8, int shift, System.Point offset = null ) : void
Cv2