コード例 #1
0
 public void DrawPath(Pen pen, GraphicsPath path)
 {
     if (path != null && path.PointCount != 0)
     {
         RenderingObject.DrawPath(pen, path);
     }
 }
コード例 #2
0
        /// <summary>
        /// Draws a GraphicsPath object.
        /// </summary>
        /// <param name="pen">Pen object that determines the color, width, and style of the path.</param>
        /// <param name="path">GraphicsPath object to draw.</param>
        internal void DrawPath(
            Pen pen,
            GraphicsPath path
            )
        {
            // Check if path is empty
            if (path == null ||
                path.PointCount == 0)
            {
                return;
            }

            RenderingObject.DrawPath(pen, path);
        }
コード例 #3
0
 public void DrawPath(Pen pen, GraphicsPath path)
 {
     RenderingObject.DrawPath(pen, path);
 }