Ejemplo n.º 1
0
 private static SKStream OpenStream(string path)
 {
     if (!SKFileStream.IsPathSupported(path))
     {
         // due to a bug (https://github.com/mono/SkiaSharp/issues/390)
         return(WrapManagedStream(File.OpenRead(path)));
     }
     else
     {
         return(new SKFileStream(path));
     }
 }
Ejemplo n.º 2
0
 public static bool IsPathSupported(string path) => SKFileStream.IsPathSupported(path);