title: convert string to image
body: <p>I'm trying to convert my string into a 173x173 png-image. Is that somehow possible and if yes: how? need the url afterwards to use it on my backtile.</p>
  
  <p>the string can contain letters,numbers, and "-./"</p>
  
  <p>found something like that, but don't seem to work at all:</p>
  
  <pre><code> private Uri ToImage()
      {
          string imageString = "";
  
          byte[] imageBytes = Convert.FromBase64String(imageString);
          System.Text.Encoding.UTF8.GetBytes(imageString.ToCharArray(), 0, imageString.ToCharArray().Length - 1,
          imageBytes, 0);
  
          System.IO.MemoryStream ms = new System.IO.MemoryStream(imageBytes, 0, imageBytes.Length);
  
          ms.Write(imageBytes, 0, imageBytes.Length);
  
          BitmapImage bitmapImage = new BitmapImage();
          bitmapImage.SetSource(ms);
          return bitmapImage.UriSource;
      }
  </code></pre>