SVGGraphics.FillPath C# (CSharp) Method

FillPath() public method

public FillPath ( SVGColor, fillColor, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
fillColor SVGColor,
strokePathColor SVGColor,
graphicsPath SVGGraphicsPath,
return void
    public void FillPath(SVGColor fillColor, SVGColor? strokePathColor,
                       SVGGraphicsPath graphicsPath)
    {
        graphicsFill.FillPath(fillColor, strokePathColor, graphicsPath);
    }

Same methods

SVGGraphics::FillPath ( SVGColor, fillColor, SVGColor, strokePathColor, float width, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGColor, fillColor, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGGraphicsPath, graphicsPath, Vector2 points ) : void
SVGGraphics::FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGColor, strokePathColor, float width, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGLinearGradientBrush, linearGradientBrush, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGColor, strokePathColor, float width, SVGGraphicsPath, graphicsPath ) : void
SVGGraphics::FillPath ( SVGRadialGradientBrush, radialGradientBrush, SVGGraphicsPath, graphicsPath ) : void

Usage Example

コード例 #1
0
ファイル: SVGBasicElement.cs プロジェクト: grrava/UnitySVG
        public void Render()
        {
            CreateGraphicsPath();
            _render.SetStrokeLineCap(_paintable.strokeLineCap);
            _render.SetStrokeLineJoin(_paintable.strokeLineJoin);
            switch (_paintable.GetPaintType())
            {
            case SVGPaintMethod.SolidGradientFill:
            {
                _render.FillPath(_paintable.fillColor.Value, _graphicsPath);
                Draw();
                break;
            }

            case SVGPaintMethod.LinearGradientFill:
            {
                SVGLinearGradientBrush _linearGradBrush =
                    _paintable.GetLinearGradientBrush(_graphicsPath);

                if (_linearGradBrush != null)
                {
                    _render.FillPath(_linearGradBrush, _graphicsPath);
                }
                Draw();
                break;
            }

            case SVGPaintMethod.RadialGradientFill:
            {
                SVGRadialGradientBrush _radialGradBrush =
                    _paintable.GetRadialGradientBrush(_graphicsPath);

                if (_radialGradBrush != null)
                {
                    _render.FillPath(_radialGradBrush, _graphicsPath);
                }
                Draw();
                break;
            }

            case SVGPaintMethod.PathDraw:
            {
                Draw();
                break;
            }
            }
        }
All Usage Examples Of SVGGraphics::FillPath