示例#1
0
        public void Open(Stream stream)
        {
            var reader = new EXRReader(new BinaryReader(stream));

            Open(reader);
            reader.Dispose();
        }
示例#2
0
        public void Open(string file)
        {
            var reader = new EXRReader(new FileStream(file, FileMode.Open, FileAccess.Read));

            Open(reader);
            reader.Dispose();
        }
示例#3
0
        public static EXRFile FromStream(Stream stream)
        {
            var reader = new EXRReader(new BinaryReader(stream));
            var result = FromReader(reader);

            reader.Dispose();
            return(result);
        }
示例#4
0
        public static EXRFile FromFile(string file)
        {
            var reader = new EXRReader(new FileStream(file, FileMode.Open, FileAccess.Read));
            var result = FromReader(reader);

            reader.Dispose();
            return(result);
        }