Changeset 6727


Ignore:
Timestamp:
07/26/10 09:20:53 (9 years ago)
Author:
melissa
Message:

Allow double images to be saved to TIFF.

Location:
trunk/components/bio-formats/src/loci/formats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/FormatWriter.java

    r6531 r6727  
    352352    } 
    353353 
    354     if (!DataTools.containsValue(getPixelTypes(), pixelType)) { 
     354    if (!DataTools.containsValue(getPixelTypes(compression), pixelType)) { 
    355355      throw new FormatException("Unsupported image type '" + 
    356356        FormatTools.getPixelTypeString(pixelType) + "'."); 
  • trunk/components/bio-formats/src/loci/formats/out/TiffWriter.java

    r6715 r6727  
    222222      return new int[] {FormatTools.INT8, FormatTools.UINT8}; 
    223223    } 
    224     return super.getPixelTypes(codec); 
     224    return new int[] {FormatTools.INT8, FormatTools.UINT8, FormatTools.INT16, 
     225      FormatTools.UINT16, FormatTools.INT32, FormatTools.UINT32, 
     226      FormatTools.FLOAT, FormatTools.DOUBLE}; 
    225227  } 
    226228 
Note: See TracChangeset for help on using the changeset viewer.