예제 #1
0
 partial void Init(ColorRef color, float width, float[] dashPattern)
 {
     this.color = color;
     this.width = width;
     if (dashPattern != null)
     {
         var w = width != 0 ? width : 1;
         this.dashPattern = dashPattern.Select(x => (nfloat)(x * w)).ToArray();
     }
     else
     {
         this.dashPattern = null;
     }
 }
예제 #2
0
 partial void Init(ColorRef color);
예제 #3
0
 public Brush(ColorRef color)
 {
     Init(color);
 }
예제 #4
0
 partial void Init(ColorRef color, float width, float [] dashPattern);
예제 #5
0
 public Pen(ColorRef color, float width, float [] dashPattern = null)
 {
     Init(color, width, dashPattern);
 }
예제 #6
0
 partial void Init(ColorRef color)
 {
     b = new System.Drawing.SolidBrush(color.Value.ToSystemDrawingObject());
 }
예제 #7
0
파일: brush.cs 프로젝트: rkapl123/logjoint
 partial void Init(ColorRef color)
 {
     this.color = color;
 }