コード例 #1
0
ファイル: Kinect.cs プロジェクト: old8xp/AForge.NET
        /// <summary>
        /// Set color of Kinect's LED.
        /// </summary>
        ///
        /// <param name="ledColor">LED color to set.</param>
        ///
        /// <exception cref="DeviceErrorException">Some error occurred with the device. Check error message.</exception>
        ///
        public void SetLedColor(LedColorOption ledColor)
        {
            lock ( sync )
            {
                CheckDevice( );

                int result = KinectNative.freenect_set_led(rawDevice, ledColor);

                if (result != 0)
                {
                    throw new DeviceErrorException("Failed setting LED color to " + ledColor + ". Error code: " + result);
                }
            }
        }
コード例 #2
0
 public static extern int freenect_set_led( IntPtr device, LedColorOption option );
コード例 #3
0
ファイル: Kinect.cs プロジェクト: RevDevBev/aforge.net
        /// <summary>
        /// Set color of Kinect's LED.
        /// </summary>
        /// 
        /// <param name="ledColor">LED color to set.</param>
        /// 
        /// <exception cref="DeviceErrorException">Some error occurred with the device. Check error message.</exception>
        /// 
        public void SetLedColor( LedColorOption ledColor )
        {
            lock ( sync )
            {
                CheckDevice( );

                int result = KinectNative.freenect_set_led( rawDevice, ledColor );

                if ( result != 0 )
                {
                    throw new DeviceErrorException( "Failed setting LED color to " + ledColor + ". Error code: " + result );
                }
            }
        }
コード例 #4
0
ファイル: KinectNative.cs プロジェクト: old8xp/AForge.NET
 public static extern int freenect_set_led(IntPtr device, LedColorOption option);