Posted by Jim Guerber on February 24, 2010 at 01:01:37:
In Reply to: Electronic signatures posted by Doug Pegg on February 21, 2010 at 16:17:58:
I downloaded the SDK from WACOM.. ( the site indicated below). It looks to be like they produce an imaqge of the signature and write it to the file "..\signature.jpg". This would be one folder above the working directory for the program.
Once you have located the .jpg file, you can do anything with it.
Is this what you want?
There is no need to go to email on this. It's good stuff for anyone looking to interface with outside programs.
It is possible that the group who sold the device programmed it to save the image to another location. You may want to ask them how to locate it. -- The relavent code is in their C++ file "SignPadDotNet_DemoDlg.cpp" and at the bottom you will find the following code...
void CSignPadDotNet_DemoDlg::OnBnClickedSave()
{
// TODO: Add your control notification handler code here
if (!isConnected())
{
AfxMessageBox(_T("Error connection!!!"));
return;
}
CRect rect;
GetWindowRect(&rect);
CImage img;
HWND hWnd = GetSafeHwnd();
HDC hDcDlg = ::GetDC(hWnd);
HBITMAP hBitmap = CreateCompatibleBitmap(hDcDlg,rect.Width()-5,rect.Height()-80);
HDC hDC = CreateCompatibleDC(hDcDlg);
HGDIOBJ hOldBmp = SelectObject(hDC, hBitmap);
BitBlt(hDC,0,0,rect.Width(),rect.Height(),hDcDlg,0,0,SRCCOPY);
SelectObject(hDC, hOldBmp);
img.Attach(hBitmap);
img.Save(_T("..\\signature.jpg"));
DeleteDC(hDC);
img.Destroy();
}
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.