Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 public void SaveImageToHistory(ImageInfo imageInfo)
 {
     ImageInfoHistory.Add(imageInfo);
 }