Closed easoftwaresanderson closed 6 years ago
I found the problem. If you don't specified the parameters strokeColor and fillColor this issues happen.
Follow the correct code .:
var image = await Pad.GetImageStreamAsync(
SignatureImageFormat.Jpeg,
strokeColor: Color.Black,fillColor: Color.White);
imgAssinatura.Source = ImageSource.FromStream(() =>
{
return image;
});
Description
When I use the function GetImageStreamAsync to get the Stream and return this stream to a Image
Code
<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:forms="clr-namespace:SignaturePad.Forms;assembly=SignaturePad.Forms" xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" prism:ViewModelLocator.AutowireViewModel="True" x:Class="AppHRSClean.Views.AssinaturaPage" Title="Assinatura do Responsável">