BodyExtensions.RefreshFromBodyArray<T> Method (KinectEx)
Similar to the Kinect SDK method BodyFrame.GetAndRefreshBodyData, this
method uses the values from the specified Body array to update
the values in this collection. If the current collection does not contain
the correct number of bodies, this method clears and refills this collection
with new bodies of type T. Note that if this behavior is undesirable,
insure that the collection contains the right number of bodies before
calling this method.
- C#
- VB
- C++
- F#
[ExtensionAttribute] public static void RefreshFromBodyArray<T>( this IList<T> bodies, Body[] kinectBodies ) where T : IBody
Syntax for VB is not yet implemented.
Syntax for C++ is not yet implemented
[<ExtensionAttribute>] static member RefreshFromBodyArray<'T when 'T : IBody> : bodies : IList<T> * kinectBodies : Body[] -> unit
Supported in:
Windows Desktop - .NET 4.5
Windows Desktop - .NET 4.5