コード例 #1
0
ファイル: Stroke.cs プロジェクト: interopxyz/Wind
 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;
 }
コード例 #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);
            }
        }
コード例 #3
0
ファイル: D2DDraw.cs プロジェクト: windygu/noForms
        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);
            }
        }