Exemplo n.º 1
0
 private void InvalidateChild(double zoomX, double zoomY, double offsetX, double offsetY)
 {
     if (_projectEditor != null)
     {
         var  state      = _projectEditor.Renderers[0].State;
         bool invalidate = state.ZoomX != zoomX || state.ZoomY != zoomY;
         state.ZoomX = zoomX;
         state.ZoomY = zoomY;
         state.PanX  = offsetX;
         state.PanY  = offsetY;
         if (invalidate)
         {
             _projectEditor.OnInvalidateCache(isZooming: true);
         }
     }
 }