public static SensorProperty TranslateCaptureProperty(VideoCaptureProperty property) { switch (property) { case VideoCaptureProperty.FrameWidth: return(SensorProperty.FrameWidth); case VideoCaptureProperty.FrameHeight: return(SensorProperty.FrameHeight); case VideoCaptureProperty.FrameRate: return(SensorProperty.FrameRate); case VideoCaptureProperty.Brightness: return(SensorProperty.Brightness); case VideoCaptureProperty.Gain: return(SensorProperty.Gain); case VideoCaptureProperty.Exposure: return(SensorProperty.Exposure); default: throw new ArgumentException(); } }
public static extern bool SetVideoCapturePropertyAuto(IntPtr settings, VideoCaptureProperty property);
public static extern bool SetVideoCaptureProperty(IntPtr settings, VideoCaptureProperty property, int value);
public static extern int GetVideoCaptureProperty(IntPtr settings, VideoCaptureProperty property);