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?