Changeset 2668


Ignore:
Timestamp:
04/25/07 08:11:49 (13 years ago)
Author:
curtis
Message:

Use native pixel type for "blank image" thumbnails, instead of always 8-bit.

File:
1 edited

Legend:

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

    r2655 r2668  
    392392    if (blankThumb[sno] == null) { 
    393393      blankThumb[sno] = ImageTools.blankImage(getThumbSizeX(), 
    394         getThumbSizeY(), sizeC[sno], FormatTools.UINT8); 
     394        getThumbSizeY(), sizeC[sno], getPixelType()); 
    395395    } 
    396396    return blankThumb[sno]; 
     
    409409    int sno = getSeries(); 
    410410    if (blankThumbBytes[sno] == null) { 
     411      int bytes = FormatTools.getBytesPerPixel(getPixelType()); 
    411412      blankThumbBytes[sno] = new byte[getThumbSizeX() * getThumbSizeY() * 
    412         getRGBChannelCount()]; 
     413        bytes * getRGBChannelCount()]; 
    413414    } 
    414415    return blankThumbBytes[sno]; 
     
    724725 
    725726    // analyze first file; assume each file has the same parameters 
    726  
    727727    int oldSeries = reader.getSeries(); 
    728728    for (int i=0; i<seriesCount; i++) { 
Note: See TracChangeset for help on using the changeset viewer.