Пример #1
0
        private void ReconstructScene(Rect clipRect)
        {
            // Reconstruct the scene under the current stroke (only within the updated rect)
            RenderingContext.SetTarget(SceneLayer, clipRect);
            RenderingContext.ClearColor(StrokeHandler.BackgroundColor);
            RenderingContext.DrawLayerAtPoint(AllStrokesLayer, clipRect, new Point(clipRect.X, clipRect.Y), Ink.Rendering.BlendMode.SourceOver);

            // Blend the current stroke on top (only within the updated rect)
            RenderingContext.DrawLayerAtPoint(PrelimPathLayer, clipRect, new Point(clipRect.X, clipRect.Y), Ink.Rendering.BlendMode.SourceOver);
        }