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

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

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

            reader.Dispose();
            return(result);
        }
Example #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);
        }