Exemple #1
0
        public static PsdDocument Create(Stream stream, PsdResolver resolver)
        {
            PsdDocument document = new PsdDocument();

            document.Read(stream, resolver, new Uri(Directory.GetCurrentDirectory()));
            return(document);
        }
Exemple #2
0
        public static PsdDocument Create(string filename, PsdResolver resolver)
        {
            PsdDocument document = new PsdDocument();
            FileInfo    fileInfo = new FileInfo(filename);
            FileStream  stream   = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read, FileShare.Read);

            document.Read(stream, resolver, new Uri(fileInfo.DirectoryName));
            return(document);
        }