Example #1
0
 public Stroke(Stroke stroke) : base()
 {
     this.type       = stroke.type;
     this.color      = new Color(stroke.color);
     this.weight     = stroke.weight;
     this.pattern    = stroke.pattern;
     this.dashoffset = stroke.dashoffset;
     this.cap        = stroke.cap;
     this.corner     = stroke.corner;
     this.miterLimit = stroke.miterLimit;
 }
Example #2
0
        LineCap Translate2(StrokeCaps sc)
        {
            switch (sc)
            {
            case (StrokeCaps.flat): return(LineCap.Flat);

            case (StrokeCaps.round): return(LineCap.Round);

            case (StrokeCaps.triangle): return(LineCap.Triangle);

            default: return(LineCap.Flat);
            }
        }
Example #3
0
        CapStyle Translate(StrokeCaps sc)
        {
            switch (sc)
            {
            case (StrokeCaps.flat): return(CapStyle.Flat);

            case (StrokeCaps.round): return(CapStyle.Round);

            case (StrokeCaps.triangle): return(CapStyle.Triangle);

            default: return(CapStyle.Flat);
            }
        }