private void PixelLight1D_Resize(object sender, EventArgs e)
{
if (this.scale == 0)
return;
this.overlay = new Bitmap(Width, Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
using (var g = Graphics.FromImage(this.overlay))
using (var p = new Pen(Color.Black))
{
for (int x = this.scale - 1; x < Width; x += this.scale)
{
g.DrawLine(p, x, 0, x, Height - 1);
}
}
}