// Image preview panel Paint event // Called from Form control private void ImagePanel_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; ImagePanel.DrawPanelImage(g, (float)ImageScaleInput.Value); foreach (var p in ClipPoints) { var pp = ImagePanel.ImageToPanel(p); g.FillEllipse(Brushes.Red, pp.X - 4, pp.Y - 4, 8, 8); } }