示例#1
0
 private void Preview()
 {
     if (!_initialized ||
         previewWidthInput.Value == 0 ||
         previewHeightInput.Value == 0 ||
         zoomInput.Value == 0 ||
         previewIterationInput.Value == 0
         )
     {
         return;
     }
     _renderMandelbrot?.StopRendering();
     _previewMandelbrot?.StopRendering();
     _previewMandelbrot?.Calculate(_previewMaxIt, _centerX, _centerY, _complexZoom,
                                   _previewResultX, _previewResultY);
 }
示例#2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     _renderMandelbrot.Calculate(_renderMaxIt, _centerX, _centerY, _complexZoom, _renderResultX,
                                 _renderResultY);
 }