PC Review


Reply
Thread Tools Rate Thread

Reconsituting an OpenNetCF Signature on the Desktop

 
 
Darren Shaffer
Guest
Posts: n/a
 
      16th Mar 2005
All,

I'm struggling with bitmaps and byte arrays today. I'm using the OpenNetCF
Signature control and save the byte[] representing the signature into
SQLMobile.
If I read this byte[] from SQLMobile on device, I can reconstitute the
signature back
into the OpenNetCF Signature control with no issue.

If I replicate the table containing the signature byte[] to Yukon, I cannot
seem to
reconstitute the byte[] into a Bitmap that can be shown in a Full .NET
Framework
PictureBox on the desktop. I notice that on device, the SQLMobile image
column
represents the byte[] as F00000....

and after replicating to Yukon, the same image column looks like:

0xF00000...

I think I'm missing the Bitmap header information as Alex has explained in
responding to a few posts,
but wouldn't that info have to be written on device before replicating to
the desktop? Most examples
of this deal with writing the Bitmap on device to a local file and calling
it good, but I need to resolve
the bitmap to an Image column in SQLMobile in such a way that it can be
reconstituted in a
desktop application.

Thank you.
--
Darren Shaffer
Principal Architect
Connected Innovation


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      16th Mar 2005
The GetSignature method of the Singature control in the SDF returns a byte
array of line points that have been recorded not the Bitmap bytes.

-Alex

--
Alex Yakhnin, .NET CF MVP

"Darren Shaffer" wrote:

> All,
>
> I'm struggling with bitmaps and byte arrays today. I'm using the OpenNetCF
> Signature control and save the byte[] representing the signature into
> SQLMobile.
> If I read this byte[] from SQLMobile on device, I can reconstitute the
> signature back
> into the OpenNetCF Signature control with no issue.
>
> If I replicate the table containing the signature byte[] to Yukon, I cannot
> seem to
> reconstitute the byte[] into a Bitmap that can be shown in a Full .NET
> Framework
> PictureBox on the desktop. I notice that on device, the SQLMobile image
> column
> represents the byte[] as F00000....
>
> and after replicating to Yukon, the same image column looks like:
>
> 0xF00000...
>
> I think I'm missing the Bitmap header information as Alex has explained in
> responding to a few posts,
> but wouldn't that info have to be written on device before replicating to
> the desktop? Most examples
> of this deal with writing the Bitmap on device to a local file and calling
> it good, but I need to resolve
> the bitmap to an Image column in SQLMobile in such a way that it can be
> reconstituted in a
> desktop application.
>
> Thank you.
> --
> Darren Shaffer
> Principal Architect
> Connected Innovation
>
>
>

 
Reply With Quote
 
Darren Shaffer
Guest
Posts: n/a
 
      16th Mar 2005
thanks Alex.
--
Darren Shaffer
Principal Architect
Connected Innovation

"Alex Yakhnin [MVP]" <(E-Mail Removed)> wrote in message
news:FAF8DC66-E551-4952-9F47-(E-Mail Removed)...
> The GetSignature method of the Singature control in the SDF returns a byte
> array of line points that have been recorded not the Bitmap bytes.
>
> -Alex
>
> --
> Alex Yakhnin, .NET CF MVP
>
> "Darren Shaffer" wrote:
>
>> All,
>>
>> I'm struggling with bitmaps and byte arrays today. I'm using the
>> OpenNetCF
>> Signature control and save the byte[] representing the signature into
>> SQLMobile.
>> If I read this byte[] from SQLMobile on device, I can reconstitute the
>> signature back
>> into the OpenNetCF Signature control with no issue.
>>
>> If I replicate the table containing the signature byte[] to Yukon, I
>> cannot
>> seem to
>> reconstitute the byte[] into a Bitmap that can be shown in a Full .NET
>> Framework
>> PictureBox on the desktop. I notice that on device, the SQLMobile image
>> column
>> represents the byte[] as F00000....
>>
>> and after replicating to Yukon, the same image column looks like:
>>
>> 0xF00000...
>>
>> I think I'm missing the Bitmap header information as Alex has explained
>> in
>> responding to a few posts,
>> but wouldn't that info have to be written on device before replicating to
>> the desktop? Most examples
>> of this deal with writing the Bitmap on device to a local file and
>> calling
>> it good, but I need to resolve
>> the bitmap to an Image column in SQLMobile in such a way that it can be
>> reconstituted in a
>> desktop application.
>>
>> Thank you.
>> --
>> Darren Shaffer
>> Principal Architect
>> Connected Innovation
>>
>>
>>



 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      16th Mar 2005
Darren, you may consider this example [1] to get a user signature and
save it as monchrome bitmap.

[1] http://www.sergeybogdanov.com/Samples/SaveImage.zip

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Darren Shaffer wrote:
> All,
>
> I'm struggling with bitmaps and byte arrays today. I'm using the OpenNetCF
> Signature control and save the byte[] representing the signature into
> SQLMobile.
> If I read this byte[] from SQLMobile on device, I can reconstitute the
> signature back
> into the OpenNetCF Signature control with no issue.
>
> If I replicate the table containing the signature byte[] to Yukon, I cannot
> seem to
> reconstitute the byte[] into a Bitmap that can be shown in a Full .NET
> Framework
> PictureBox on the desktop. I notice that on device, the SQLMobile image
> column
> represents the byte[] as F00000....
>
> and after replicating to Yukon, the same image column looks like:
>
> 0xF00000...
>
> I think I'm missing the Bitmap header information as Alex has explained in
> responding to a few posts,
> but wouldn't that info have to be written on device before replicating to
> the desktop? Most examples
> of this deal with writing the Bitmap on device to a local file and calling
> it good, but I need to resolve
> the bitmap to an Image column in SQLMobile in such a way that it can be
> reconstituted in a
> desktop application.
>
> Thank you.

 
Reply With Quote
 
Darren Shaffer
Guest
Posts: n/a
 
      16th Mar 2005
using it now Sergey - thank you!

--
Darren Shaffer
Principal Architect
Connected Innovation

"Sergey Bogdanov" <(E-Mail Removed)> wrote in message
news:u2q$(E-Mail Removed)...
> Darren, you may consider this example [1] to get a user signature and save
> it as monchrome bitmap.
>
> [1] http://www.sergeybogdanov.com/Samples/SaveImage.zip
>
> Best regards,
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
>
> Darren Shaffer wrote:
>> All,
>>
>> I'm struggling with bitmaps and byte arrays today. I'm using the
>> OpenNetCF
>> Signature control and save the byte[] representing the signature into
>> SQLMobile.
>> If I read this byte[] from SQLMobile on device, I can reconstitute the
>> signature back
>> into the OpenNetCF Signature control with no issue.
>>
>> If I replicate the table containing the signature byte[] to Yukon, I
>> cannot seem to
>> reconstitute the byte[] into a Bitmap that can be shown in a Full .NET
>> Framework
>> PictureBox on the desktop. I notice that on device, the SQLMobile image
>> column
>> represents the byte[] as F00000....
>>
>> and after replicating to Yukon, the same image column looks like:
>>
>> 0xF00000...
>>
>> I think I'm missing the Bitmap header information as Alex has explained
>> in responding to a few posts,
>> but wouldn't that info have to be written on device before replicating to
>> the desktop? Most examples
>> of this deal with writing the Bitmap on device to a local file and
>> calling it good, but I need to resolve
>> the bitmap to an Image column in SQLMobile in such a way that it can be
>> reconstituted in a
>> desktop application.
>>
>> Thank you.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenNETCF 2.0 signature control has disappeard? Ubigg Microsoft Dot NET Compact Framework 1 8th Jan 2007 05:38 PM
Opennetcf signature control =?Utf-8?B?SkI=?= Microsoft Dot NET Compact Framework 1 5th Oct 2005 02:33 PM
OpennetCF.ORG - Signature. A_PK Microsoft Dot NET Compact Framework 1 14th Mar 2005 11:57 AM
OpenNetCF.org has released v1.5 of the OpenNETCF.Desktop.Communication Chris Tacke, eMVP Microsoft Dot NET Compact Framework 1 30th Sep 2003 07:06 AM
OpenNETCF Desktop.Communication Ofer B. Microsoft Dot NET Compact Framework 2 2nd Sep 2003 09:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 PM.