1
下載xamarin.signaturePad示例後,我只想從簽名板獲取圖像到內存流並顯示在我的imageview上。這裏是我的代碼和iOS及其工作正常,但在Android上的顯示空流以xamarin格式從signaturepad獲取圖像?
var image = await padView.GetImageStreamAsync(SignatureImageFormat.Png);
var stream = new MemoryStream();
image.CopyToAsync(stream);
var imageByteArray= stream.ToArray();
img_result.Source = ImageSource.FromStream(() => newMemoryStream(imageByteArray));