void writeImage(FileInfo fi, Calibration cal) throws IOException { FileOutputStream out = new FileOutputStream(new File(fi.directory,fi.fileName)); // First write out the full 76 byte header writeHeader(fi,out); // Then the image data ImageWriter writer = new ImageWriter(fi); writer.write(out); // Now write out notes - these are only the basic notes // write out the footer - ie the calibration information writeFooter(fi,out); out.close(); IJ.showStatus("Saved "+fi.fileName); }
file.write(out); out.close();
file.write(out); out.close();
ImageWriter file = new ImageWriter(fi); out = new FileOutputStream(path); file.write(out); out.close();
file.write(out); out.close(); } catch (IOException e) {
ImageWriter file = new ImageWriter(fi); out = new FileOutputStream(path); file.write(out); out.close();
file.write(out); out.close(); } catch (IOException e) {
if (metaDataSize>0) writeMetaData(out); new ImageWriter(fi).write(out); if (nextIFD>0L) { int ifdSize2 = ifdSize;
if (metaDataSize>0) writeMetaData(out); new ImageWriter(fi).write(out); if (nextIFD>0L) { int ifdSize2 = ifdSize;