Skip to main content

Code sample - Hardware video adjustments

Delphi and C# (ActiveX) sample code

Many devices support video adjustments that you can use to improve video quality.

For instance, you can use Video_CaptureDevice_VideoAdjust_GetRanges to get the current level of brightness, available adjustment ranges and the pitch

VideoCapture1.Video_CaptureDevice_VideoAdjust_GetRanges(adj_Brightness, min, max, step, default, auto);
VideoCapture1.Video_CaptureDevice_VideoAdjust_GetRanges(
VisioForge_Video_Capture_3.TxVFVideoCapAdjust.adj_Brightness,
out min,
out max,
out step,
out default_value,
out auto);

And with Video_CaptureDevice_VideoAdjust_SetValue, you can set the necessary level.

VideoCapture1.Video_CaptureDevice_VideoAdjust_SetValue(
adj_Brightness,
tbAdjBrightness.Position,
cbAdjBrightnessAuto.Checked);
VideoCapture1.Video_CaptureDevice_VideoAdjust_SetValue(
VisioForge_Video_Capture_3.TxVFVideoCapAdjust.adj_Brightness,
tbAdjBrightness.Value,
cbAdjBrightnessAuto.Checked);

Please get in touch with support to get help with this tutorial. Visit our GitHub page to get more code samples.