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)); } }
public static bool IsPathSupported(string path) => SKFileStream.IsPathSupported(path);