Changeset 3166


Ignore:
Timestamp:
09/17/07 15:53:18 (12 years ago)
Author:
curtis
Message:

Use simpler overwriteComment instead of overwriteIFDValue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/EditTiff.java

    r1707 r3166  
    3636      System.out.print("Saving " + f); 
    3737      // save results back to the TIFF file 
    38       RandomAccessFile raf = new RandomAccessFile(args[i], "rw"); 
    39       TiffTools.overwriteIFDValue(raf, 0, TiffTools.IMAGE_DESCRIPTION, xml); 
    40       raf.close(); 
     38      TiffTools.overwriteComment(args[i], xml); 
     39      // or if you already have the file open for random access, you can use: 
     40      // RandomAccessFile raf = new RandomAccessFile(args[i], "rw"); 
     41      // TiffTools.overwriteIFDValue(raf, 0, TiffTools.IMAGE_DESCRIPTION, xml); 
     42      // raf.close(); 
    4143      System.out.println(" [done]"); 
    4244    } 
Note: See TracChangeset for help on using the changeset viewer.