/// <summary> /// Inherited from <see cref="IForm"/>. /// Redraws the previous Mandelbrot Set. /// </summary> /// <param name="bitmapSize">The size of the image to create</param> public void ShowPreviousPlane(Size bitmapSize) { if (ImageInfoHistory.Count == 1) { DrawInitialImage(bitmapSize); } else { ImageInfoHistory.Remove(ImageInfoHistory.Last()); var imageInfo = ImageInfoHistory.Last(); DrawImageAsync(bitmapSize, imageInfo); } }
/// <summary> /// Inherited from <see cref="IForm"/>. /// Redraw the current Mandelbrot Set with a different size but keep it's visible portion /// of the plane the same. /// </summary> /// <param name="newBitmapSize"> The new size of the Mandelbrot Set</param> public void Resize(Size newBitmapSize) { var imageInfo = ImageInfoHistory.Last(); DrawImageAsync(newBitmapSize, imageInfo); }