Black Friday is here! Take advantage of this unique opportunity and get up to 80% extra knowledge for free! Read more here
bf extended_2022

Mandelbrot in C# WPF, with Zooming and Image Saving

The application renders the Mandelbrot set in the default view. By clicking with the left mouse button, magnification is calculated at the click point, which allows you to gradually "dive" deeper and explore the strange shapes of the details of the set. It's possible to switch between 3 different color schemes. The generated images then can be saved in the user's Pictures folder (Pictures/Man­delbrot) in jpeg format.

The calculated points of the set are added as pixels into WritableBitmap, which is then rendered to the Canvas as an Image. Calculations and rendering are relatively fast, although the zooming increases the number of iterations. The maximum zoom is set to 44x. During any larger zooming I've observed pixelating of the image. It's probably due to the double type not providing enough decimal places for the increasing required calculations accuracy.

Version 1.01, Nov 7, 2017: The unnecessary Point class has been removed from the project. The pixel color is generated from the R, G, and B color components, and is added into auxiliary color list, which is then used to creates pixel array for the Writable bitmap.


Program was created in 2017.



By downloading the following file, you agree to the license terms

Downloaded 37x (328.35 kB)
Application includes source codes in language C# .NET


All articles in this section
C# .NET Community Projects - WPF Form Applications
Program has been written for you by Bruno Schwarzbach
User rating:
No one has rated this quite yet, be the first one!




To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

No one has commented yet - be the first!