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; }
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); } }
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); } }