/// <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); }
/// <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; }
public SnapshotRetriever(CameraSummary summary) { this.summary = summary; device = new FrameGeneratorDevice(); }