Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Created February 21, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/e20c1239ffa8cd369362f8e821eaa6e6 to your computer and use it in GitHub Desktop.
Save MartinZikmund/e20c1239ffa8cd369362f8e821eaa6e6 to your computer and use it in GitHub Desktop.
String extension to use FileImageExtensions in code
public static class StringImagePathExtensions
{
public static FileImageSource ToFileImage(this string imagePath) => FileImageExtension.Convert(imagePath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment