Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vb .net compact signature capture

131 views
Skip to first unread message

ClintonMccutcheon

unread,
Aug 2, 2005, 10:27:40 AM8/2/05
to
Hello,

Ive been searching the numerous threads in regards to this (very
annoying) problem.

Why microsoft didnt put the image save functions in i dont know.

My problem is such:

I have the OpenNETCF signature capture control, capable of converting a
signature into either a byte array of points, or a bmp (the bmp only
resides in memory though, it doesnt save to a folder).

As part of my application, a signature needs to be captured, then saved
as a bmp to a folder.

Ive tried numerous ways of doing this, all to no avail.

Bearing in mind this is programmed in VB.net compact, ive found no
clear cut way of saving this bmp that is in memory to a file.

The reason it has to be saved as a bmp, and not as a text file, or byte
array, is because my companies website running PHP/postgres back end
doesnt seem capable of re-compiling the byte array to display the image
on our clients solution site.

So we need to simply save it in memory so it can be transfered via our
sync program.

If anyone can offer me any help into this it would be greatly
appreciated!

best regards
clint

Ginny Caughey [MVP]

unread,
Aug 2, 2005, 11:17:07 AM8/2/05
to
Clinton,

Here's some C# code that illustrates saving a signature from the OpenNETCF
signature capture control to a BMP file. It shouldn't be too hard to
duplcate in VB:

if(signature1.GetSignature() != null)
{
byte[] signatureBytes = signature1.GetSignature();
FileStream fs = new FileStream("test.bmp", FileMode.Create);
BinaryWriter writer = new BinaryWriter(fs);
writer.Write(signatureBytes);
writer.Close();
fs.Close();
signature1.Clear();
}

HTH,

Ginny Caughey
.NET Compact Framework MVP

"ClintonMccutcheon" <clinton.m...@gmail.com> wrote in message
news:1122992860....@g49g2000cwa.googlegroups.com...

0 new messages