Signature capture performance

  • Thread starter Thread starter Andrew Martin
  • Start date Start date
A

Andrew Martin

We've got some code to handle the signatures for our VB.net CF app.
No problems on most devices, but when we load it on the delivery
device (LXE MX5), it chugs along and missed a good number of the
points. We are able to fill in those missing points by calling the
method "TestFunction" of PocketOutlook.dll. This makes the signature
look a whole lot better, but due to the extra processing, the painting
lags significantly behind the stylus (like 2 seconds by the time
you're done).

The code works fine on a XScale device, but it lags really bad on a
SA1110 206MHz device. Any ideas are appreciated.

-a
 
I know this may not go down well on this group but have thought of doing it
in native code? ie not .NET
 
I initially developed signature captrue code using quite a bit of P/Invoke
based on richink control - same one used in the Note Taker. There is no
perfomance hit at all.
A code sample that shows how to use RichInk control in CF code is available
here: http://www.alexfeinman.com/download.asp?doc=NoteTaker.zip
It also demonstrates saving and reloading of the ink data. A bit of problem
is that it saves the ink data in Pocket Notes (.pwi) format. Although easy
to open using MS Word, this format is not public, but fortunately you can a)
feed this data back to the richink control on the device, b) use RichEdit
control on the desktop to display it.

In my application I went slightly different way and simply grabbed the
bitmap image off the screen and saved it un my database. Although I don't
have a downloadable sample of how to do this, Martin Stave has posted a code
snippet on OpenNETCF.org, which is based on what I do, but with some
enhancements:
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=339

HTH

Alex
 
Alex Feinman said:
I initially developed signature captrue code using quite a bit of P/Invoke
based on richink control - same one used in the Note Taker. There is no
perfomance hit at all.
A code sample that shows how to use RichInk control in CF code is available
here: http://www.alexfeinman.com/download.asp?doc=NoteTaker.zip
It also demonstrates saving and reloading of the ink data. A bit of problem
is that it saves the ink data in Pocket Notes (.pwi) format. Although easy
to open using MS Word, this format is not public, but fortunately you can a)
feed this data back to the richink control on the device, b) use RichEdit
control on the desktop to display it.

In my application I went slightly different way and simply grabbed the
bitmap image off the screen and saved it un my database. Although I don't
have a downloadable sample of how to do this, Martin Stave has posted a code
snippet on OpenNETCF.org, which is based on what I do, but with some
enhancements:
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=339

HTH

Alex

Thanks for the ideas. The content on the OpenNetCF forum
(http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=339) is
essentially what I have. For some reason it really lags on the SA1110
device.
 
Back
Top