Basically, I believe I'm not allocating the right size of memory chunk for
the bitmap to be copied to and not moving the appropriate bytes because I'm
having a hard size determinig how the bitmap is stored.

If in a watch window I look at the window handle of the offscreen window it
copies the signature too, there is a bitmapP variable.  This has a member
width which is 0, height which is 8000+, and rowBytes of 119.

In that example, they allocate memory of size sizeof(BitmapType) + (rowBytes
* height).  I guess they're assuming no color table (which my unit doesn't
have, but I think there's a grayscale thing going on  that's confusing me
even more).

Currently, I used their sample code and then tried to draw the bitmap to
another region on the window.  It never draws it, and sooner or later
crashes.  I'm pretty positive I'm not grabbing the right bytes.  My searches
on palms site and the web has just confused me with screen-depths and color,
etc.

I really need to capture a signature, put it in a database and transfer it
through my conduit to show on a report.  Am I way overcomplicating this or
something.

Also, I'm pretty new to the Palm OS, so you may have to speak slow.

Thanks
Chris

"Avilla, Dane" <[EMAIL PROTECTED]> wrote in message
news:63313@palm-dev-forum...
>
> > I am working on a Palm 3.3x symbol device and am having issues with
> > capturing a signature.  I looked at the signature example
> > found on Palm's
> > web site, but it doesn't seem to support anything above 3.2.
>
> What specific problem are you observing?  I had some problems with this
code
> running on a color device.  If I remember correctly, the Signature++ code
> sample assumes 1-bit (B&W) graphics mode rather than 8-bit color mode (or
> any grayscale mode).  If you give a little more info about your problem, I
> can probably point you in the right direction.
>
> Are you having problems restoring the bitmap from the bitmapP that is
saved
> by the app?  Is the app crashing when your code saves the bitmap image?
>
> -DGA
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to