Recreate the byte array for the signature class on the desktop

Last post 03-28-2008 5:11 by Neil. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-26-2008 4:37

    Recreate the byte array for the signature class on the desktop

    We have an application that used the 1.4 version of the opennetcf.windows.forms.signature class. We converted the class to a byte array using GetSignatureEx and sent it back to the pc over a web service. On the PC we re-drew the signature on a label. The format of the byte array was a series of x,y co-ordinates so this was fairly easy to achieve.

     
    Since the release of the 2.2 signature class it appears that the format of the byte array has changed. On Windows mobile we can  recreate a signature from the byte array using LoadSignatureEx and we can convert it to a bitmap using ToBitmap.

    Our problem is when we send the byte array over to the desktop(XP). We can create a new signature and call LoadSignatureEx but it wont draw the signature. We've tried creating a bitmap but this doesnt work either.

    As a last resort we've converted the signature to a bitmap, the bitmap to a byte array and sent that. However the bitmap byte array is significantly larger than the equivalent byte array created by the signature class and is reaching the maximum size in SQL Mobile. 

    So my question is can we recreate the byte array created by GetSignatureEx in XP?

    Filed under: ,
  • 03-28-2008 5:11 In reply to

    • Neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,136

    Re: Recreate the byte array for the signature class on the desktop

    The Smart Device Framework is not licensed for use under Windows XP or Windows Vista, but only for Windows CE and Windows Mobile. Attempting to use any of the Smart Device Framework classes on XP or Vista is not a tested or supported scenario.

    The changes to the Signature control are not new to 2.2, but where introduced 2 years ago in version 2.0. Purchasing a license for the Smart Device Framework Extensions for Visual Studio will also get you the source code, which you could use to write a desktop counterpart to parse the Signature bytes. 

Page 1 of 1 (2 items)