0
由於這個問題,我不知道如何改變Skeleton - Basic WPF中的骨架顏色?任何機構可以幫助我如何更改Kinect SDK 1.8中的框架顏色?
由於這個問題,我不知道如何改變Skeleton - Basic WPF中的骨架顏色?任何機構可以幫助我如何更改Kinect SDK 1.8中的框架顏色?
假設你正在使用的代碼在骨骼樣品,你可以在這些刷子改變數值:
/// <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;