Exemplo n.º 1
0
        /// <summary>
        /// Configure the device according to what is saved in the preferences.
        /// </summary>
        private void CreateAndConfigureDevice()
        {
            if (grabbing)
            {
                Stop();
            }

            device = new FrameGeneratorDevice();

            SpecificInfo specific = summary.Specific as SpecificInfo;

            if (specific == null)
            {
                return;
            }

            device.Configuration = new DeviceConfiguration(specific.ImageFormat, specific.Width, specific.Height, specific.Framerate);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Configure the device according to what is saved in the preferences.
        /// </summary>
        private void CreateAndConfigureDevice()
        {
            if (grabbing)
            {
                Stop();
            }

            device = new FrameGeneratorDevice();

            SpecificInfo specific = summary.Specific as SpecificInfo;

            if (specific == null)
            {
                return;
            }

            DeviceConfiguration configuration = new DeviceConfiguration(specific.FrameSize.Width, specific.FrameSize.Height, specific.FrameInterval, ImageFormat.RGB24);

            device.Configuration = configuration;
        }
Exemplo n.º 3
0
        public SnapshotRetriever(CameraSummary summary)
        {
            this.summary = summary;

            device = new FrameGeneratorDevice();
        }