如何在 Kinect SDK 1.8 中更改骨架的颜色



作为问题,我不知道如何在骨架 - 基本 WPF 中更改骨架的颜色?任何身体可以帮助我

假设您使用的是框架示例中的代码,则可以更改以下画笔中的值:

    /// <summary>
    /// Brush used for drawing joints that are currently tracked
    /// </summary>
    private readonly Brush trackedJointBrush = new SolidColorBrush(Color.FromArgb(255, 68, 192, 68));
    /// <summary>
    /// Brush used for drawing joints that are currently inferred
    /// </summary>        
    private readonly Brush inferredJointBrush = Brushes.Yellow;

到任何RGB值或任何预定义的颜色Brushes例如。

    /// <summary>
    /// Brush used for drawing joints that are currently tracked (red)
    /// </summary>
    private readonly Brush trackedJointBrush = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
    /// <summary>
    /// Brush used for drawing joints that are currently inferred
    /// </summary>        
    private readonly Brush inferredJointBrush = Brushes.Blue;

最新更新