private void RopeLight2_Paint(object sender, PaintEventArgs e)
{
if (this.outputBitmap != null)
{
e.Graphics.InterpolationMode = InterpolationMode.NearestNeighbor;
e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
e.Graphics.DrawImage(this.outputBitmap, 0, 0, Width, Height);
if (this.overlay != null)
e.Graphics.DrawImageUnscaled(this.overlay, 0, 0);
}
}