internal void Redraw(DrawParameters parameters) { int scale = parameters.Scale; int selection = parameters.Selection; if (scale == 0 || selection == -1) { picture.Image = originalImage; } else { Bitmap copyImage = new Bitmap(originalImage); Rectangle rect = ImageUtils.GetSelectedRectangle(copyImage.Width, copyImage.Height, scale, selection); copyImage = copyImage.Clone(rect, copyImage.PixelFormat); picture.Image = copyImage; } picture.Refresh(); }
private void Redraw(DrawParameters parameters) { schema.Redraw(parameters); realImage.Redraw(parameters); }