xamarin / SignaturePad

MIT License
245 stars 150 forks source link

How to display the Signature in an Image View #167

Closed dansica2725 closed 5 years ago

dansica2725 commented 5 years ago

Description

Hello, I need help to display the Signature in an ImageView in Xamarin.Forms

Code

async void GetSignature()
        {
            var bitmap = await SignatureView.GetImageStreamAsync(SignaturePad.Forms.SignatureImageFormat.Jpeg);

            ImageView.Source = ImageSource.FromStream(() =>
            {
                return bitmap;
            });
        }

Expected Behavior

Signature to Display in an ImageView

Actual Behavior

Nothing is displayed