Example #1
0
 /// <summary>
 /// Write a contour to a SVG file.
 /// </summary>
 /// <param name="polygon">Polygon contour.</param>
 /// <param name="fileName">File name.</param>
 /// <param name="stroke">Stroke color (black by default).</param>
 /// <param name="fill">Fill color (white by default).</param>
 public static void WriteContourPolygonSvg(CvContourPolygon polygon, string fileName, CvScalar stroke, CvScalar fill)
 {
     if (polygon == null)
     {
         throw new ArgumentNullException("polygon");
     }
     polygon.WriteAsSvg(fileName, stroke, fill);
 }
Example #2
0
 /// <summary>
 /// Write a contour to a SVG file.
 /// </summary>
 /// <param name="polygon">Polygon contour.</param>
 /// <param name="fileName">File name.</param>
 public static void WriteContourPolygonSvg(CvContourPolygon polygon, string fileName)
 {
     if (polygon == null)
     {
         throw new ArgumentNullException(nameof(polygon));
     }
     polygon.WriteAsSvg(fileName);
 }
Example #3
0
 /// <summary>
 /// Write a contour to a SVG file.
 /// </summary>
 /// <param name="polygon">Polygon contour.</param>
 /// <param name="fileName">File name.</param>
 public static void WriteContourPolygonSvg(CvContourPolygon polygon, string fileName)
 {
     polygon.WriteAsSvg(fileName);
 }