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