Set video quality for both cameras.

Namespace:  AForge.Robotics.Surveyor
Assembly:  AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public void SetQuality(
	int quality
)

Parameters

quality
Type: System..::.Int32
Video quality to set, [1, 8].

Remarks

The method sets video quality for both SVS cameras, which is specified in [1, 8] range - 1 is the highest quality level, 8 is the lowest quality level.

Note:Setting higher quality level and resolution may increase delays for other requests sent to SVS. So if robot is used not only for video, but also for controlling servos/motors, and higher response level is required, then do not set very high quality and resolution.

Exceptions

ExceptionCondition
AForge..::.NotConnectedExceptionNot connected to SVS. Connect to SVS board before using this method.
System..::.ArgumentOutOfRangeExceptionInvalid quality level was specified.

See Also