Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisualCapture"/> class.
 /// </summary>
 /// <param name="pipeline">The pipeline to add the component to.</param>
 /// <param name="configuration">Configuration values for the visual capture component.</param>
 public VisualCapture(Pipeline pipeline, VisualCaptureConfiguration configuration)
     : this(pipeline, configuration.Interval, configuration.Visual, configuration.PixelWidth, configuration.PixelHeight)
 {
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisualCapture"/> class.
 /// </summary>
 /// <param name="pipeline">The pipeline to add the component to.</param>
 /// <param name="configuration">Configuration values for the visual capture component.</param>
 /// <param name="name">An optional name for the component.</param>
 public VisualCapture(Pipeline pipeline, VisualCaptureConfiguration configuration, string name = nameof(VisualCapture))
     : this(pipeline, configuration.Interval, configuration.Visual, configuration.PixelWidth, configuration.PixelHeight, name)
 {
 }