public void Initialize(string signatureFileDirectory) { _device = new SigPlusNET(); _device.PenUp += PenUp; Load(null, null); _fileDirectory = signatureFileDirectory; if (_device.TabletConnectQuery() == true) // checking whether there is connection { Clear(); _device.SetTabletLogicalXSize(2000); _device.SetTabletLogicalYSize(700); _device.SetDisplayPenWidth(8); _device.SetImagePenWidth(10); _device.SetLCDCaptureMode(2); _device.ClearTablet(); _device.SetTabletState(1); } else { throw new Exception("No Signature pad found"); } }
public void Clear() { _device.ClearTablet(); _device.LCDClear(); _device.SetTabletState(1); }