Esempio n. 1
0
 public TPainter Draw(float stepByX, float stepByY)
 {
     ScaleByAxisX = stepByX;
     ScaleByAxisY = stepByY;
     state        = _painter.Paint(_fractal.GetFractalData(ComplexRectange, new Size(300, 300)));
     _fractal.GetFractalDataAsync(ComplexRectange, new Size(700, 700))
     .ContinueWith(task => {
         state = _painter.Paint(task.Result);
     });
     _fractal.GetFractalDataAsync(ComplexRectange, new Size(1400, 1400))
     .ContinueWith(task => {
         state = _painter.Paint(task.Result);
     });
     PixelRectangle = new Rectangle(new Point(), _painter.GetOriginalCanvasSize());
     return(state);
 }