AForge.Video.Ximea.XimeaCamera.SetParam C# (CSharp) Метод

SetParam() публичный Метод

Set camera's parameter.

The method allows to control different camera's parameters, like exposure time, gain value, etc. See CameraParameter class for the list of some possible configuration parameters. See XIMEA documentation for the complete list of supported parameters.

An error occurred while communicating with a camera. See error /// message for additional information. No camera was opened, so can not access its methods.
public SetParam ( string parameterName, int value ) : void
parameterName string Parameter name.
value int Integer parameter value.
Результат void
        public void SetParam( string parameterName, int value )
        {
            lock ( sync )
            {
                CheckConnection( );

                int errorCode = XimeaAPI.xiSetParam( deviceHandle, parameterName, ref value, 4, ParameterType.Integer );
                HandleError( errorCode );
            }
        }

Same methods

XimeaCamera::SetParam ( string parameterName, float value ) : void

Usage Example

Пример #1
0
 /// <summary>
 /// Set camera's parameter.
 /// </summary>
 ///
 /// <param name="parameterName">Parameter name.</param>
 /// <param name="value">Integer parameter value.</param>
 ///
 /// <remarks><para><note>The call is redirected to <see cref="XimeaCamera.SetParam(string, int)"/>.</note></para></remarks>
 ///
 public void SetParam(string parameterName, int value)
 {
     camera.SetParam(parameterName, value);
 }