This event is generated after the TakeSnapshot method is executed.

[Visual Basic]   playcontrolname_Snapshot(ByVal ImageHandle As ImageKit10WebCamera(A)LibCtl.LONG_PTR, FreeMemory As Boolean)
[Visual C++]     OnSnapshotplaycontrolname(LONG_PTR ImageHandle, BOOL* FreeMemory)
[VB.NET]   playcontrolname_Snapshot(ByVal sender As System.Object, ByVal e As AxImageKit10WebCamera(A)Lib.IImageKitPlayEvents_SnapshotEvent)
[C#.NET]   playcontrolname_Snapshot(object sender, AxImageKit10WebCamera(A)Lib.IImageKitPlayEvents_SnapshotEvent e)

* ImageKit10WebCameraALibCtl / ImageKit10WebCameraALib/ refers to the ANSI version. ImageKit10WebCameraLibCtl / ImageKit10WebCameraLib/ refers to the Unicode version.

Parameters

Name Explanation
ImageHandle The memory handle of the snapshot bitmap
FreeMemory Sets whether or not the ImageHandle is freed from the memory after this event fires. Default is True. To free memory, set this to True. To hold the ImageHandle in the memory after this event fires, set to False.

In VB.NET and C#.NET, the second argument of this event is e. It contains the ImageHandle and FreeMemory parameters. (the first letter of these parameters are lowercase in .NET)

Explanation

The Snapshot event is generated after the TakeSnapshot method is executed.

When the FreeMemory parameter is True, the retrieved snapshot's bitmap will be freed from the memory after this event completes. To save the snapshot, execute the ImageKit Control's CopyImage method within this event and save the snapshot to file, etc.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation