Changeset 7224


Ignore:
Timestamp:
11/19/10 16:35:37 (9 years ago)
Author:
melissa
Message:

Fixed pixel offset bug.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/BMPReader.java

    r7007 r7224  
    176176 
    177177    addGlobalMeta("File size (in bytes)", in.readInt()); 
    178     in.skipBytes(8); // reserved 
     178    in.skipBytes(4); 
     179    global = in.readInt(); 
    179180 
    180181    // read the second header - 40 bytes 
     
    224225    } 
    225226    else if (nColors != 0) in.skipBytes(nColors * 4); 
    226  
    227     global = in.getFilePointer(); 
    228227 
    229228    LOGGER.info("Populating metadata"); 
  • trunk/components/bio-formats/src/loci/formats/in/BMPReader.java

    r6881 r7224  
    176176 
    177177    addGlobalMeta("File size (in bytes)", in.readInt()); 
    178     in.skipBytes(8); // reserved 
     178    in.skipBytes(4); 
     179    global = in.readInt(); 
    179180 
    180181    // read the second header - 40 bytes 
     
    224225    } 
    225226    else if (nColors != 0) in.skipBytes(nColors * 4); 
    226  
    227     global = in.getFilePointer(); 
    228227 
    229228    LOGGER.info("Populating metadata"); 
Note: See TracChangeset for help on using the changeset viewer.