コード例 #1
0
ファイル: P3Path.cs プロジェクト: stangelandcl/piccolo2d.net
 /// <summary>
 /// Constructs a new P3Path with the given points, point types, fill mode and pen.
 /// </summary>
 /// <param name="pts">The points in the path.</param>
 /// <param name="types">The types of the points in the path.</param>
 /// <param name="fillMode">The fill mode to use when rendering this node.</param>
 /// <param name="pen">The pen to use when rendering this node.</param>
 public P3Path(PointF[] pts, byte[] types, FillMode fillMode, Pen pen)
 {
     path     = new GraphicsPath(pts, types, fillMode);
     this.pen = pen;
     UpdateBoundsFromPath();
 }
コード例 #2
0
ファイル: P3Path.cs プロジェクト: malacandrian/Piccolo.NET
		/// <summary>
		/// Constructs a new P3Path with the given points, point types, fill mode and pen.
		/// </summary>
		/// <param name="pts">The points in the path.</param>
		/// <param name="types">The types of the points in the path.</param>
		/// <param name="fillMode">The fill mode to use when rendering this node.</param>
		/// <param name="pen">The pen to use when rendering this node.</param>
		public P3Path(PointF[] pts, byte[] types, FillMode fillMode, Pen pen) {
			path = new GraphicsPath(pts, types, fillMode);
			this.pen = pen;
			UpdateBoundsFromPath();
		}
コード例 #3
0
ファイル: P3Path.cs プロジェクト: stangelandcl/piccolo2d.net
 /// <summary>
 /// Constructs a new P3Path with the given points, point types and fill mode.
 /// </summary>
 /// <param name="pts">The points in the path.</param>
 /// <param name="types">The types of the points in the path.</param>
 /// <param name="fillMode">The fill mode to use when rendering this node.</param>
 public P3Path(PointF[] pts, byte[] types, FillMode fillMode)
     : this(pts, types, fillMode, DEFAULT_PEN)
 {
 }
コード例 #4
0
ファイル: P3Path.cs プロジェクト: malacandrian/Piccolo.NET
		/// <summary>
		/// Constructs a new P3Path with the given points, point types and fill mode.
		/// </summary>
		/// <param name="pts">The points in the path.</param>
		/// <param name="types">The types of the points in the path.</param>
		/// <param name="fillMode">The fill mode to use when rendering this node.</param>
		public P3Path(PointF[] pts, byte[] types, FillMode fillMode)
			: this(pts, types, fillMode, DEFAULT_PEN) {
		}