Share via


KinectUIAdapter.bindStreamToCanvas Function

Kinect for Windows 1.8

Binds the specified canvas element to the specified image stream.

Syntax

bindStreamToCanvas(streamName, canvas);

Parameters

  • streamName
    Type: String

    Name of the stream to bind to the specified canvas element. This must be one of the supported image stream names; stream names are defined by the *_STREAM_NAME properties of the Kinect interface.

  • canvas
    Type: Object

    Canvas element to bind to the specified image stream.

Remarks

Image data for the bound stream will be rendered onto the canvas element whenever a new stream frame arrives.

Requirements

Library: Kinect-1.8.0.js

See Also

Reference

KinectUIAdapter Interface
UI Components