Changeset 2380


Ignore:
Timestamp:
03/05/07 08:08:02 (13 years ago)
Author:
melissa
Message:

Fixed bug reported by Claude Bonnard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/LIFReader.java

    r2377 r2380  
    150150  { 
    151151    if (!id.equals(currentId)) initFile(id);  
     152    bpp = dims[series][5]; 
     153    while (bpp % 8 != 0) bpp++; 
    152154    byte[] buf = new byte[sizeX[series] * sizeY[series] *  
    153155      (bpp / 8) * sizeC[series]]; 
     
    180182    throws FormatException, IOException 
    181183  { 
    182     BufferedImage b = ImageTools.makeImage(openBytes(id, no), width, height, 
    183       c, false, bpp / 8, littleEndian, validBits[series]); 
     184    BufferedImage b = ImageTools.makeImage(openBytes(id, no), sizeX[series],  
     185      sizeY[series], sizeC[series], false, bpp / 8, littleEndian,  
     186      validBits[series]); 
    184187    updateMinMax(b, no); 
    185188    return b; 
Note: See TracChangeset for help on using the changeset viewer.