I am trying to create a sample in which a user can sign using touch based device or mouse. Probably we can use canvas. but now we need to send that sign through share charm. How can i capture that sign and send it as share email attachment?
I haven't written any code. Please guide me if I can get any where any sample to write this functionality down or any other help.
Now I have written some code but how can I convert IRandomAccessStream to RandomAccessStreamReference. I need RandomAccessStreamReference as SetBitmap option while sharing takes RandomAccessStreamReference. So can I change IRandomAccessStream to RandomAccessStreamReference. Here is the code:
IRandomAccessStream signatureStream = null;
StorageFile myMerge = await ApplicationData.Current.LocalFolder.CreateFileAsync("sign.png");
IOutputStream signature = await myMerge.OpenAsync(FileAccessMode.ReadWrite);
if (signature != null)
{
await _inkManager.SaveAsync(signature);
signatureStream = await myMerge.OpenReadAsync();
}
return signatureStream;
Thanks I got it use RandomAccessStreamReference.CreateFromStream.