Method StopSignatureCapture
StopSignatureCapture()
Stops the capturing of the signature drawing.
Declaration
Error StopSignatureCapture()
Returns
Type | Description |
---|---|
Error | Error |
Remarks
A signature process started with
starts capturing the drawn signature.This capturing needs to be stopped at some point either with this function or by switching to customer logo mode with
.Examples
The following example starts a standard signature process and stops capturing when the SignFinished event is triggered.
C#
driver.SignStarted += (object sender, EventArgs e) =>
{
Console.WriteLine("Drawing has started.");
};
bool finished = false;
driver.SignFinished += (object sender, EventArgs e) =>
{
Console.WriteLine("Drawing has finished.");
driver.StopSignatureCapture();
finished = true;
};
driver.SetSignatureRectangle(0, 0, 0, 0); //fullscreen
driver.StartSignatureMode(SignMode.StandardSign);
Console.WriteLine("Please draw.");
while (!finished)
Thread.Sleep(500);
Similar program in
F#
open System
open System.Linq
open Sig.DeviceAPI
open System.Threading
[<EntryPoint>]
let main argv =
let driver = new Driver() :> IDriver
let mutable padTexts : string[] = [||]
let mutable count = 0
let mutable error = driver.EnumerateDevices(&padTexts, &count, FilterDeviceKind.dkStepOver)
error <- driver.SetDevice(padTexts.FirstOrDefault())
error <- driver.LoadLicense("DriverXMLCertificate.xml")
let mutable finished = false
driver.SignStarted.Add(fun _e -> printfn "Drawing has started.")
driver.SignFinished.Add(fun _e ->
printfn "Drawing has finished."
error<- driver.StopSignatureCapture()
finished<- true
)
error<- driver.SetSignatureRectangle(0, 0, 0, 0) //fullscreen
error<- driver.StartSignatureMode(SignMode.StandardSign)
printfn "Please draw."
while (not finished) do
Thread.Sleep(500)
done
0 // return an integer exit code