private void ChangeCanvasSize() { using (CanvasSizeForm canvasSizeForm = new CanvasSizeForm()) { if (canvasSizeForm.ShowDialog(Form) == DialogResult.OK) { Padding canvas = canvasSizeForm.Canvas; Image img = ImageHelpers.AddCanvas(Form.Canvas, canvas); if (img != null) { MoveAll(canvas.Left, canvas.Top); UpdateCanvas(img); } } } }
private void ChangeCanvasSize() { using (CanvasSizeForm canvasSizeForm = new CanvasSizeForm()) { if (canvasSizeForm.ShowDialog() == DialogResult.OK) { Padding canvas = canvasSizeForm.Canvas; Image img = ImageHelpers.AddCanvas(form.Canvas, canvas); if (img != null) { MoveAll(canvas.Left, canvas.Top); form.InitBackground(img); isAnnotated = true; } } } }
private void ChangeCanvasSize() { using (CanvasSizeForm canvasSizeForm = new CanvasSizeForm()) { if (canvasSizeForm.ShowDialog() == DialogResult.OK) { Padding canvas = canvasSizeForm.Canvas; Image img = ImageHelpers.AddCanvas(form.Image, canvas); if (img != null) { Rectangle oldRect = form.ImageRectangle; form.InitBackground(img); MoveAll(form.ImageRectangle.X - oldRect.X + canvas.Left, form.ImageRectangle.Y - oldRect.Y + canvas.Top); isAnnotated = true; } } } }