ONVIFSnapShot
Delphi
function ONVIFSnapShot (OnRawVideoSampleCallbackEnabled: Boolean; SaveToFile: Boolean; FileName: string): Boolean;
C++Builder
bool __fastcall ONVIFSnapShot(bool OnRawVideoSampleCallbackEnabled, bool SaveToFile, System::UnicodeString FileName);
C#
public bool ONVIFSnapShot(bool OnRawVideoSampleCallbackEnabled, bool SaveToFile, string FileName);
VB.NET
Public Function ONVIFSnapShot(OnRawVideoSampleCallbackEnabled As Boolean, SaveToFile As Boolean, FileName As String) As Boolean
C++/Qt
BOOL ONVIFSnapShot (BOOL OnRawVideoSampleCallbackEnabled, BOOL SaveToFile, wchar_t *FileName);
Captures a JPEG snapshot from an IP camera that supports the ONVIF protocol.
Parameters:
-
OnRawVideoSampleCallbackEnabled: if true, the OnRawVideoSample event occurs, giving direct access to the buffer and buffer size parameters of the event; the buffer contains the JPEG image in memory.
-
SaveToFile: if true, the JPEG image is saved to the FileName specified.
-
FileName: path/file name of the JPEG image to save.