Hololens/Lib/Cameras.cs
//################################################################################
/// <summary>
/// Display the frame in XAML Image element.
/// </summary>
/// <param name="image"></param>
Display the frame in XAML Image element.
Display the frame in XAML Image element .
public async Task DisplayFrame(Image image)
        {
            if (_frame != null)
            {
                await _source.SetBitmapAsync(_frame); 
                _image = image;
                _image.Source = _source;
                _frame_displayed = true;
            }
        }
public async Task DisplayFrame ( Image image ) { if ( _frame != null ) { await _source . SetBitmapAsync ( _frame ) ; _image = image ; _image . Source = _source ; _frame_displayed = true ; } }
Display the frame in XAML Image element.
Display the frame in XAML Image element .
// get a frame from video stream capture // set image as an attribute
image
Image
None