What I do is simply capture the strokes (rather than the bitmap) and store
these in my database for the signature (yes it is variably length, but so is
everythig else in that particular database). It is just as fast since yo0u
are normally drawing only one stoke. For the formUpdate case or displaying
an old signature, you have to redraw all the strokes but that is not a
significant speed problem. I actually have my own version of winDrawLine
(there is at least one bug with using clipping, at least in older OS
versions) and draw the stokes on an 'internal' bitmap and then just draw the
bitmap on the screen. By porting my code for winDrawLine to my conduit I can
have the conduit produce a windows bitmap instead of a palm bitmap to be
saved on the PC
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Philip
Sheard
Sent: Tuesday, March 27, 2001 17:18
To: Palm Developer Forum
Subject: Re: to anyone who has done signature++ on OS3.5
> To the many people who are having huge problems getting signature
> capture code working on both OSes before 3.5 and OS 3.5 and later.
>
> Why haven't you refactored the problem? If the issue is getting data
> off the screen, why not change the problem? A signature capture program
> boils down to
>
> 1) capture user pen strokes
> 2) show the strokes to the user
> 3) save the strokes for later use
>
> This begs for using backing store code, where the pen strokes modify an
> offscreen bitmap, and the bitmap is copied back to the main screen after
> each penMove. Then, when you're finished, you have a bitmap all ready
> for you to use and you don't have to deal with grabbing out of screen
> memory.
How would you apply the pen strokes to your off screen bitmap? If you use a
window, then you face the same problems of version dependency.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/