IsStroke() public method

public IsStroke ( ) : bool
return bool
Ejemplo n.º 1
0
    public SVGPaintable(SVGPaintable inheritPaintable, AttributeList attrList)
    {
        this._linearGradList = inheritPaintable.linearGradList;
        this._radialGradList = inheritPaintable.radialGradList;;
        Initialize(attrList);

        if(IsFillX() == false) {
          if(inheritPaintable.IsLinearGradiantFill()) {
        this._gradientID = inheritPaintable.gradientID;
          } else if(inheritPaintable.IsRadialGradiantFill()) {
        this._gradientID = inheritPaintable.gradientID;
          } else this._fillColor = inheritPaintable.fillColor;
        }
        if(!IsStroke()&& inheritPaintable.IsStroke()) {
          this._strokeColor = inheritPaintable.strokeColor;
        }

        if(_strokeLineCap == SVGStrokeLineCapMethod.Unknown) {
          _strokeLineCap = inheritPaintable.strokeLineCap;
        }

        if(_strokeLineJoin == SVGStrokeLineJoinMethod.Unknown) {
          _strokeLineJoin = inheritPaintable.strokeLineJoin;
        }

        if(isStrokeWidth == false)
          this._strokeWidth.NewValueSpecifiedUnits(inheritPaintable.strokeWidth);
    }
Ejemplo n.º 2
0
    public SVGPaintable(SVGPaintable inheritPaintable, Dictionary<string, string> attrList)
    {
        _linearGradList = inheritPaintable.linearGradList;
        _radialGradList = inheritPaintable.radialGradList;
        Initialize(attrList);

        if(IsFillX() == false) {
          if(inheritPaintable.IsLinearGradiantFill())
        _gradientID = inheritPaintable.gradientID;
          else if(inheritPaintable.IsRadialGradiantFill())
        _gradientID = inheritPaintable.gradientID;
          else
        _fillColor = inheritPaintable.fillColor;
        }
        if(!IsStroke() && inheritPaintable.IsStroke())
          _strokeColor = inheritPaintable.strokeColor;

        if(_strokeLineCap == SVGStrokeLineCapMethod.Unknown)
          _strokeLineCap = inheritPaintable.strokeLineCap;

        if(_strokeLineJoin == SVGStrokeLineJoinMethod.Unknown)
          _strokeLineJoin = inheritPaintable.strokeLineJoin;

        if(isStrokeWidth == false)
          _strokeWidth.NewValueSpecifiedUnits(inheritPaintable.strokeWidth);
    }
Ejemplo n.º 3
0
    public SVGPaintable(SVGPaintable inheritPaintable, Dictionary <string, string> attrList)
    {
        _linearGradList = inheritPaintable.linearGradList;
        _radialGradList = inheritPaintable.radialGradList;
        Initialize(attrList);

        if (IsFillX() == false)
        {
            if (inheritPaintable.IsLinearGradiantFill())
            {
                _gradientID = inheritPaintable.gradientID;
            }
            else if (inheritPaintable.IsRadialGradiantFill())
            {
                _gradientID = inheritPaintable.gradientID;
            }
            else
            {
                _fillColor = inheritPaintable.fillColor;
            }
        }
        if (!IsStroke() && inheritPaintable.IsStroke())
        {
            _strokeColor = inheritPaintable.strokeColor;
        }

        if (_strokeLineCap == SVGStrokeLineCapMethod.Unknown)
        {
            _strokeLineCap = inheritPaintable.strokeLineCap;
        }

        if (_strokeLineJoin == SVGStrokeLineJoinMethod.Unknown)
        {
            _strokeLineJoin = inheritPaintable.strokeLineJoin;
        }

        if (isStrokeWidth == false)
        {
            _strokeWidth.NewValueSpecifiedUnits(inheritPaintable.strokeWidth);
        }
    }