Svg.SvgRenderer.FillPath C# (CSharp) Method

FillPath() public method

public FillPath ( Brush brush, GraphicsPath path ) : void
brush System.Drawing.Brush
path System.Drawing.Drawing2D.GraphicsPath
return void
        public void FillPath(Brush brush, GraphicsPath path)
        {
            this._innerGraphics.FillPath(brush, path);
        }

Usage Example

 /// <summary>
 /// Renders the fill of the <see cref="SvgVisualElement"/> to the specified <see cref="SvgRenderer"/>
 /// </summary>
 /// <param name="renderer">The <see cref="SvgRenderer"/> object to render to.</param>
 protected internal virtual void RenderFill(SvgRenderer renderer)
 {
     if (this.Fill != null)
     {
         using (Brush brush = this.Fill.GetBrush(this, this.FillOpacity))
         {
             if (brush != null)
             {
                 renderer.FillPath(brush, this.Path);
             }
         }
     }
 }
All Usage Examples Of Svg.SvgRenderer::FillPath