public ImageSaver(IFileNamingTemplate fileNaming, CaptureOptions.ImageContainer container) { _fileNaming = fileNaming; var formatAndExt = CaptureOptions.ToValue(container); _format = formatAndExt.Key; _fileExt = formatAndExt.Value; }
public VideoSaver(IFileNamingTemplate fileNaming, CaptureOptions.VideoSize frameSize, CaptureOptions.VideoFPS FPS, CaptureOptions.VideoCompression compression) { KeyValuePair <int, int> size = CaptureOptions.ToValue(frameSize); _fileNaming = fileNaming; _frameWidth = size.Key; _frameHeight = size.Value; _FPS = CaptureOptions.ToValue(FPS); _compression = compression; _buffer = null; _dxPlay = null; }