コード例 #1
0
        private void EnumModes()
        {
            int numModes = AVProLiveCameraPlugin.GetNumModes(_deviceIndex);

            for (int i = 0; i < numModes; i++)
            {
                int    width, height;
                float  fps;
                string format;
                if (AVProLiveCameraPlugin.GetModeInfo(_deviceIndex, i, out width, out height, out fps, out format))
                {
                    AVProLiveCameraDeviceMode mode = new AVProLiveCameraDeviceMode(this, i, width, height, fps, format.ToString());
                    _modes.Add(mode);
                }
            }
            SortModes();
        }