internal static void CopyToFrameToDrawingGroup(this HighDefinitionFaceFrame highDefinitionFaceFrame, ref DrawingVisual drawingVisual, bool useDepthSpace = true, byte bodyIndex = 1, double pointRadius = 2F) { drawingVisual.Children.Clear(); using (DrawingContext context = drawingVisual.RenderOpen()) { highDefinitionFaceFrame.CopyToFrameToDrawingContext(context, useDepthSpace, bodyIndex, pointRadius); } }
internal static void CopyToFrameToDrawingGroup(this FaceFrame faceFrame, ref DrawingVisual drawingVisual, bool useInfraredSpace = true, byte bodyIndex = 1, double pointRadius = 1F, double line = 1F) { drawingVisual.Children.Clear(); using (DrawingContext context = drawingVisual.RenderOpen()) { faceFrame.CopyToFrameToDrawingContext(context, useInfraredSpace, bodyIndex, pointRadius, line); } }
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); } }