Changeset 7245


Ignore:
Timestamp:
11/24/10 15:31:53 (9 years ago)
Author:
curtis
Message:

Add ability to specify bitsPerPixel to fake reader.

File:
1 edited

Legend:

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

    r6881 r7245  
    227227    int thumbSizeY = 0; // default 
    228228    int pixelType = DEFAULT_PIXEL_TYPE; 
     229    int bitsPerPixel = 0; // default 
    229230    int rgb = DEFAULT_RGB_CHANNEL_COUNT; 
    230231    String dimOrder = DEFAULT_DIMENSION_ORDER; 
     
    273274        pixelType = FormatTools.pixelTypeFromString(value); 
    274275      } 
     276      else if (key.equals("bitsPerPixel")) bitsPerPixel = intValue; 
    275277      else if (key.equals("rgb")) rgb = intValue; 
    276278      else if (key.equals("dimOrder")) dimOrder = value.toUpperCase(); 
     
    327329      core[s].thumbSizeY = thumbSizeY; 
    328330      core[s].pixelType = pixelType; 
    329  
     331      core[s].bitsPerPixel = bitsPerPixel; 
    330332      core[s].imageCount = sizeZ * effSizeC * sizeT; 
    331333      core[s].rgb = rgb > 1; 
Note: See TracChangeset for help on using the changeset viewer.