public object Clone() { PaQixDef pq = new PaQixDef(); for (int i = 0; i < 2; i++) { pq.points[i] = this.points[i]; pq.dx[i] = this.dx[i]; pq.dy[i] = this.dy[i]; } pq.color = this.color; pq.dr = this.dr; pq.dg = this.dg; pq.db = this.db; return(pq); }
public void PaQix2016CS20_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; for (int i = 0; i < nCount; i++) { pen.Color = Color.FromArgb(pqs.color.R * i / nCount, pqs.color.G * i / nCount, pqs.color.B * i / nCount); if (i == 10) { pqs_t = (PaQixDef)pqs.Clone(); } g.DrawLine(pen, pqs.points[0], pqs.points[1]); PA_DoQixMove(); if (isColorEx) { PA_DoQixColorNext2(); } else { PA_DoQixColorNext1(); } } pqs = (PaQixDef)pqs_t.Clone(); }