Contents
Fractals.zip [^]
Introduction
This example program is for generating Mandelbrot and Julia sets. The
purpose for this example is to learn a few things about working with bitmap
graphics in C# and .NET.
Top 
New features
- Calculation & drawing is done using a background thread, so the UI is
still responsive.
- Mouse selection of zoom region.
- Common code from Mandelbrot & Julia classed moved into a base class
called FractalSet.
The asynchronous drawing technique used here is based on the code from the
article,
Draw Asynchronously With .NET [^] by Bill Storage, in the Aug 2002 issue of
Visual Studio Magazine.
Top 
Compile the code
The download only contains the source code, so you need to create a C#
Windows application project and add the code to it.
Top 
Using the program
Click the Draw button to create the Mandelbrot set.
To center on the region of interest, click the left mouse button on the point
which you want to become the center.
Click the Zoom In button a few times.
Alternatively, draw a rectangle around the area you would like to zoom in
on.
Select a C value for the Julia set by clicking on the Mandelbrot set.
Selecting a point along the edge of one of the cardiod shapes works best.
Select Julia from the Draw menu, to draw the Julia set for the C value
selected in the previous step
Adjust the Zoom and number of iterations to obtain an interesting Julia set.
If you can't find anything interesting, you need to go back to the Mandelbrot
set to select a new value for C.
Return to the Mandelbrot set by selecting Mandelbrot from the Draw menu.
Top 
Saving your art
From the File menu, you can save the image or the parameters. The parameters
are serialized as XML.
Top 