public CaptureSelLine() { this.InitializeComponent(); base.Width = 1; base.Height = 1; this._linetype = SelLineType.Horizon; }
public CaptureSelLine(SelLineType linetype, bool issolid, Color linecolor) { this._linetype = linetype; this.InitializeComponent(); this.pat = new float[] { 4f, 4f }; base.SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.penBack = new Pen(new SolidBrush(Color.Fuchsia), 1f); this.penLine = new Pen(linecolor, 1f); this.SetPen(issolid, linecolor); base.TransparencyKey = Color.Fuchsia; this.penWhite = new Pen(new SolidBrush(Color.White), 1f); }