c# - How to call/find a reference for windows form? -
private void sensorskeletonframeready(object sender, skeletonframereadyeventargs e) { skeleton[] skeletons = new skeleton[0]; using (skeletonframe skeletonframe = e.openskeletonframe()) { if (skeletonframe != null) { skeletons = new skeleton[skeletonframe.skeletonarraylength]; skeletonframe.copyskeletondatato(skeletons); } if (skeletons.length != 0) { foreach (skeleton skel in skeletons) { if (skel.trackingstate == skeletontrackingstate.tracked) { this.tracked(skel); this.trackedleft(skel); } } } } }
i can not seems find "skeletonarraylength"
, "skeletontrackingstate"
anywhere, problem lies reference or need set of coding this?
you have add referene of microsoft.kinect (in microsoft.kinect.dll) , add namespace microsoft.kinect project . may linq :: https://msdn.microsoft.com/en-us/library/microsoft.kinect.skeletonframe.aspx
Comments
Post a Comment