title: Signature Pad Xamarin.Forms Saving signature as a file
body: <p>I am a beginner in Xamarin.
  I tried to write a simple app to save the signature with the help of Signature Pad.
  A piece of code from MainPage.xaml</p>
  
  <pre><code>&lt;controls:SignaturePadView x:Name="SignaturePAD"
                             Grid.Row="1" 
                             StrokeColor="Black" 
                             StrokeWidth="3"
                             BackgroundColor="Gray" 
                             CaptionTextColor="Black"
                             PromptTextColor="Black"
                             SignatureLineColor="Black"
                             CaptionText="Podpis odbiorcy"&gt;
  &lt;/controls:SignaturePadView&gt;
  
  &lt;Button Grid.Row="2" 
          x:Name="SaveButton"
          Text="Potwierdź" 
          Clicked="SaveSignature"/&gt;
  </code></pre>
  
  <p>and a fragment from MainPage.xaml.cs</p>
  
  <pre><code>public partial class MainPage : ContentPage
  {
      public MainPage()
      {
          InitializeComponent();
      }
  
      public async void SaveSignature(object sender, EventArgs e)
      {
          Stream image = await SignaturePAD.GetImageStreamAsync(SignatureImageFormat.Png);
  
      }
  
  }
  </code></pre>
  
  <p>And my question is how can I save it into the my phone gallery?
  I will be grateful for any help</p>