How to save signature to a monochrome bitmap?

G

Guest

Hi, All
Signature capture is one of the requirements for my App.
I saved signature to a 24 bitmap file, then i converted to monochrome
bitmap and now i am stuck with saving it to a file.

Please, is it anywhere code snippet how to save to a mono file?
Or is it somewhere Third Party control that capture signature to a mono
bitmap?
I can send to a integreted printer(Casio) only 2 bit bitmap...
Please any suggestions

elena
 
R

Robbe Morris

My .NET CF app needed to store the signature that was drawn and
then transmit it back to the server. Since the current release of the
..NET CF SP2 doesn't have a native way to save images (and I've
seen workarounds that create huge bitmap files are are really slow),
I opted to save the mouse movements of the signature to a text file
and then redraw the signature on the server or on a regular desktop
that could save the image. It is really fast and the files are very small.

Great for disconnected environments. The code is easy too.
Works like a charm.

http://www.eggheadcafe.com/articles/dotnetcompactframework_capture_signature_to_file.asp
 
G

Guest

Thank you for advice,
I can save signature to a 24 bitmap (48 kb size), if i convert it to
monochrome manually thru the Paint Program, the size of course became just 4
KB and then Casio printer can print it out.

I just want to know why Microsoft posted source code and nice Article about
"Saving a Control Image to a Bitmap File" only for 16 or 24 bitmaps. I don't
have experience in graphics programming, my question is: Are the definition
and structure for monochrome more complicated then for 16 or 24 bitmaps ?

elena
 
C

Chris Tacke, eMVP

Nope, theire very similar. The article covered 16 and 24 bit becasue
they're the most common. The same principles can be applied to make the
code work for any color depth.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
S

Stelrad Doulton

Do you have the URL to the MS sample handy?


Chris Tacke said:
Nope, theire very similar. The article covered 16 and 24 bit becasue
they're the most common. The same principles can be applied to make the
code work for any color depth.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 

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