Changeset 2897


Ignore:
Timestamp:
06/20/07 08:24:37 (12 years ago)
Author:
melissa
Message:

Fixed bug in byte->short conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/TiffTools.java

    r2857 r2897  
    16821682          // special case handles 8-bit data more quickly 
    16831683          //if (planar == 2) { index = j+(i*(bytes.length / samples.length)); } 
    1684           short b = bytes[index]; 
     1684          short b = (short) (bytes[index] & 0xff); 
    16851685          index++; 
    16861686 
Note: See TracChangeset for help on using the changeset viewer.