Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use this function to save the picture of the signature (without the background picture if set) to a file specified in pic. You may set the filname to *.bmp or *.jpg. There are Options to enable cropping and stretching of the signature image, they have to be set before startCatpure, see Driver Options

Important: call this before you call stopRead. StopRead is deleting the picture of the last signature.

...

Function returns true on success, false on failure.


Sample

Code Block
languagecsharpc#
themeConfluenceEclipse
titleC#
linenumberstrue
//	If the signaturimage should be cropped, you need to set the following option before startCapture 
 
const int DRIVER_OPTION1_CROP_SIGNATURE = 0x00010000; 
SigDev.SetDriverLong(0, SigDev.GetDriverLong(0) | DRIVER_OPTION1_CROP_SIGNATURE); 
 
//	Save Image with Size of 300x200, in case you enabled cropping the resolution depends of the signature
       
string path = @"c:\temp\signature.bmp";
SigDev.savePic(ref path, "stretch-300x200", true);

...