private void ImageBox1_Paint(object sender, PaintEventArgs e)
{
if (drawRectangle)
{
using (Brush brush = new SolidBrush(Color.FromArgb(64, 1, 165, 220)))
{
Rectangle OffSetRect = imageBox1.GetOffsetRectangle(RectDraw);
e.Graphics.FillRectangle(brush, OffSetRect);
}
}
}