Changeset 2882


Ignore:
Timestamp:
06/18/07 12:51:46 (12 years ago)
Author:
melissa
Message:

Ignore problematic color models in makeBuffered.

File:
1 edited

Legend:

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

    r2867 r2882  
    18881888    } 
    18891889 
    1890     BufferedImage result = makeBuffered(scaleAWT(source, width, height, 
    1891       Image.SCALE_AREA_AVERAGING), source.getColorModel()); 
     1890    BufferedImage result = null; 
     1891    try {  
     1892      result = makeBuffered(scaleAWT(source, width, height, 
     1893        Image.SCALE_AREA_AVERAGING), source.getColorModel()); 
     1894    } 
     1895    catch (Exception e) { 
     1896      result = makeBuffered(scaleAWT(source, width, height,  
     1897        Image.SCALE_AREA_AVERAGING)); 
     1898    }  
    18921899    return padImage(result, finalWidth, finalHeight); 
    18931900  } 
Note: See TracChangeset for help on using the changeset viewer.