2014-03-02 44 views

回答

1

假設你正在使用的代碼在骨骼樣品,你可以在這些刷子改變數值:

/// <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;