Пример #1
0
        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();
            }
        }
Пример #2
0
 public static extern bool SetVideoCapturePropertyAuto(IntPtr settings, VideoCaptureProperty property);
Пример #3
0
 public static extern bool SetVideoCaptureProperty(IntPtr settings, VideoCaptureProperty property, int value);
Пример #4
0
 public static extern int GetVideoCaptureProperty(IntPtr settings, VideoCaptureProperty property);