Android Question XUI Views SignatureTemplate

mike1967

Active Member
Licensed User
Longtime User
Hello, i have used then XUI Views signature Template and working fine . Now i want to load a signature as bitmap in the template previously saved. I try to modify the SignatureTemplate.bas in order to do that without result. Can someone help Me with portion code to inject in the SignatureTemplate.Bas in order to show on start the previovsly signature saved ? Thanks in advanced
 

Unobtainius

Active Member
Licensed User
Longtime User
You could display the bmp using image view and when clicked, show the signature capture control
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
The best way to work signatures is in Base64 or Base32

B4X
B4X:
        Dim Base64 As String : Dim SU As StringUtils
        
        'Resize the image and convert it to Base64.
        Base64 = SU.EncodeBase64(ImageToBytes(B4XSignature1.Bitmap.Resize(350, 350, True)))
        
        'Convert Base64 to Image
        B4XImageView1.SetBitmap(BytesToImage(SU.DecodeBase64(Base64)))

        'See Base64.
        Log($"Base64:${CRLF}${Base64}"$)
1.gif
 
Upvote 0
Top