Beispiel #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;
     }
 }
Beispiel #2
0
 partial void Init(ColorRef color);
Beispiel #3
0
 public Brush(ColorRef color)
 {
     Init(color);
 }
Beispiel #4
0
 partial void Init(ColorRef color, float width, float [] dashPattern);
Beispiel #5
0
 public Pen(ColorRef color, float width, float [] dashPattern = null)
 {
     Init(color, width, dashPattern);
 }
Beispiel #6
0
 partial void Init(ColorRef color)
 {
     b = new System.Drawing.SolidBrush(color.Value.ToSystemDrawingObject());
 }
Beispiel #7
0
 partial void Init(ColorRef color)
 {
     this.color = color;
 }