public void Open(Stream stream) { var reader = new EXRReader(new BinaryReader(stream)); Open(reader); reader.Dispose(); }
public void Open(string file) { var reader = new EXRReader(new FileStream(file, FileMode.Open, FileAccess.Read)); Open(reader); reader.Dispose(); }
public static EXRFile FromStream(Stream stream) { var reader = new EXRReader(new BinaryReader(stream)); var result = FromReader(reader); reader.Dispose(); return(result); }
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); }