This method takes a snapshot from the preview.
[Delphi] [ Boolean =
]previewcontrolname.TakeSnapShot
Parameters
None
Return Value
Returns True if successful, returns False when not successful.
Explanation
The TakeSnapShot method takes a snapshot from the preview that was started using the Start method. The snapshot can be retrieved in the Snapshot event.
If the return value is False, then 2, 4 or 11 will be set in the ErrorStatus property. If the value is 4, it means that a snapshot cannot be taken from that preview.
Execute the ShowCapturePinDialog method to confirm the color space and compression of the preview.