Exemplo n.º 1
0
        public static SKDocument CreateXps(string path, float dpi = DefaultRasterDpi)
        {
            if (path == null)
            {
                throw new ArgumentNullException(nameof(path));
            }

            var stream = SKFileWStream.OpenStream(path);
            var doc    = CreateXps(stream, dpi);

            if (doc != null)
            {
                doc.SetDisposeChild(stream);
            }
            else
            {
                stream.Dispose();
            }
            return(doc);
        }