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