internal static void CopyToFrameToDrawingGroup(this BodyFrame bodyFrame, ref DrawingVisual drawingVisual, bool drawBones = true, bool useDepthSpace = true, double pointRadius = 3F, double line = 0.8F) { drawingVisual.Children.Clear(); using (DrawingContext context = drawingVisual.RenderOpen()) { bodyFrame.CopyToFrameToDrawingContext(context, drawBones, useDepthSpace, pointRadius, line); } }