CF 2.0 compatible drawing component

D

Daan

Hello all,

I am looking for a control that allows the user to draw on, and captures
the users drawing in a BMP / GIF / JPG file. In our application, it is
used to allow a customer to place his signature. The control should be
CF2.0 compatible.

We have made use of the following control, but this does not run very
well on CF2.0, it seems to crash 'at random', and takes down the entire
application with it.

http://www.geekzone.co.nz/content.asp?contentid=2761

Does anyone know a good alternative? We have looked at an example from
Microsoft
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PPCSignatureApp.asp)
but this has the disadvantage that only a text file with coordinates is
generated, not an actual bitmap.

Any suggestions are appreciated.
Kind regards,
 
D

Daan

Daan said:
I am looking for a control that allows the user to draw on, and captures
the users drawing in a BMP / GIF / JPG file. In our application, it is
used to allow a customer to place his signature. The control should be
CF2.0 compatible.

We have made use of the following control, but this does not run very
well on CF2.0, it seems to crash 'at random', and takes down the entire
application with it.

http://www.geekzone.co.nz/content.asp?contentid=2761

Does anyone know a good alternative? We have looked at an example from
Microsoft
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PPCSignatureApp.asp)
but this has the disadvantage that only a text file with coordinates is
generated, not an actual bitmap.

To answer my own post: we have decided to use the Signature control of
the OPENNETCF framework. This can generate the bitmap we need. The only
difficulty is now to figure out if anything has actually been painted on
the control, we now do a pixel-for-pixel check, but perhaps this can be
optimized somehow.
 
S

Simon Hart

To answer my own post: we have decided to use the Signature control of the
OPENNETCF framework. This can generate the bitmap we need. The only
difficulty is now to figure out if anything has actually been painted on
the control, we now do a pixel-for-pixel check, but perhaps this can be
optimized somehow.

You don't need to do anything as extravagant as that. Simply check the
length of the byte array returned from the OpenNETCF signature Data
property, if it is > 0 then you have pixels to collect.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top