Hololens/Lib/Cameras.cs
//#############################################################################################
/// <summary>
/// The callback method called when a new frame is available. By default, try to capture the frame and display it in _imageElement if set.
/// Note that parameters are not used.
/// </summary>
/// <param name="sender"> the object itself </param>
/// <param name="args"> class MediaFrameArrivedEventArgs </param>
The callback method called when a new frame is available. By default, try to capture the frame and display it in _imageElement if set.
Note that parameters are not used.
The callback method called when a new frame is available . By default try to capture the frame and display it in _imageElement if set . Note that parameters are not used .
private void FrameArrived(MediaFrameReader sender, MediaFrameArrivedEventArgs args)
        {
            if (_imageElement != null)
            {
                if (ReadFrame())
                {
                    AfterFrameArrived?.Invoke();
                }
            }
        }
private void FrameArrived ( MediaFrameReader sender , MediaFrameArrivedEventArgs args ) { if ( _imageElement != null ) { if ( ReadFrame ( ) ) { AfterFrameArrived ? . Invoke ( ) ; } } }
The callback method called when a new frame is available.
The callback method called when a new frame is available .
// run only if a display is set // if the frame is available
sender
MediaFrameReader
the object itself
the object itself
args
MediaFrameArrivedEventArgs
None