Changeset 2388


Ignore:
Timestamp:
03/06/07 09:18:27 (13 years ago)
Author:
melissa
Message:

Always use AWT for BufferedImage scaling.

File:
1 edited

Legend:

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

    r2178 r2388  
    18541854    } 
    18551855 
    1856     BufferedImage result; 
    1857     if ((width * height) / (w * h) > 0) { 
    1858       // use Java2D to enlarge 
    1859       result = scale2D(source, width, height, null, source.getColorModel()); 
    1860     } 
    1861     else { 
    1862       // use AWT to shrink 
    1863       result = makeBuffered(scaleAWT(source, width, height, 
    1864         Image.SCALE_AREA_AVERAGING), source.getColorModel()); 
    1865     } 
     1856    BufferedImage result = makeBuffered(scaleAWT(source, width, height, 
     1857      Image.SCALE_AREA_AVERAGING), source.getColorModel()); 
    18661858    return padImage(result, finalWidth, finalHeight); 
    18671859  } 
Note: See TracChangeset for help on using the changeset viewer.