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);
Used to capture a JPEG snapshot from an IP camera supporting the ONVIF protocol. bool OnRawVideoSampleCallbackEnabled: if true, the OnRawVideoSample event occurs, and it is possible to get direct access to the buffer and buffer size parameters of the event, the buffer contains the JPEG image in memory. bool SaveToFile: if true, the JPEG image is saved to the FileName specified. FileName: path/file name of the JPEG image to save.