Change in LoadSignatureEx and GetSignatureEx for OpenNetCF

If you have been using Signature Panel of compact framework in 1.2 and now are moving to 1.4 or 2.0, the way bytes are stored (with GetSignatureEx or LoadSignatureEx) has been changed. In OpenNetCf 1.2 all the bytes were stored as integer, the first 4 bytes represent width then 4 bytes for height and all other integers for the graphics data. However, now the bitmap is stored as 4 bytes for width, 4 bytes for height then the following logic for rest. 

If width < 256 Then
                    xTmp = reader.ReadByte()
               
Else
                    xTmp = reader.ReadInt16()
              
End If
                If height < 256 Then
                    yTmp = reader.ReadByte()
               
Else
                    yTmp = reader.ReadInt16()
               
End If

 

Print | posted on Wednesday, May 10, 2006 5:18 PM

Feedback

No comments posted yet.

Your comment:





 
Please add 6 and 7 and type the answer here:

Copyright © Bigyan Rajbhandari