[英]Hide Kinect hand pointer (KFW2)
Maybe this is easy and so newbie I should be ashamed to ask, but here I go: 也许这很容易,所以对于新手我应该感到羞耻,但是我在这里:
How can I hide the hand pointer? 如何隐藏指针?
Thanks! 谢谢! & Cheers!
和欢呼!
I know that my answer is a bit late but here is what i did to remove the hand pointer. 我知道我的回答有点晚了,但是这是我删除指针的方法。
Create an empty png file with the size of 548 x 2740 px, then copy it to your project and set the CursorSpriteSheet to this Resource like this: 创建一个大小为548 x 2740 px的空png文件,然后将其复制到您的项目中,并将CursorSpriteSheet设置为此资源,如下所示:
MainWindow.kinectRegion.CursorSpriteSheetDefinition = new CursorSpriteSheetDefinition(new System.Uri("pack://application:,,,/Assets/CursorSpriteSheetEmpty.png"), 4, 20, 137, 137);
You can also take the example png file from the SDK v2 Samples( it's located in ControlsBasicWPF) 您也可以从SDK v2示例中获取png文件示例(位于ControlsBasicWPF中)
As mentioned before: don't forget to set the png file as "Resource" in files properties in VS. 如前所述:不要忘记在VS的文件属性中将png文件设置为“资源”。
Regards 问候
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.