Changeset 2805


Ignore:
Timestamp:
05/23/07 08:50:45 (13 years ago)
Author:
melissa
Message:

Flip images vertically.

File:
1 edited

Legend:

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

    r2804 r2805  
    7777 
    7878    in.seek(2880 + 2880 * (((count * 80) - 1) / 2880)); 
    79     in.read(buf); 
     79    int line = core.sizeX[0] * FormatTools.getBytesPerPixel(core.pixelType[0]);  
     80    for (int y=core.sizeY[0]-1; y>=0; y--) { 
     81      in.read(buf, y*line, line);  
     82    } 
    8083    return buf; 
    8184  } 
Note: See TracChangeset for help on using the changeset viewer.