Specifies if snapshots should be provided or not.

Namespace:  AForge.Video.DirectShow
Assembly:  AForge.Video.DirectShow (in AForge.Video.DirectShow.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public bool ProvideSnapshots { get; set; }

Remarks

Some USB cameras/devices may have a shutter button, which may result into snapshot if it is pressed. So the property specifies if the video source will try providing snapshots or not - it will check if the camera supports providing still image snapshots. If camera supports snapshots and the property is set to trueTruetruetrue (True in Visual Basic), then snapshots will be provided through SnapshotFrame event.

Check supported sizes of snapshots using SnapshotCapabilities property and set the desired size using SnapshotResolution property.

Note:The property must be set before running the video source to take effect.

Default value of the property is set to falseFalsefalsefalse (False in Visual Basic).

See Also