Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1073 → Rev 1074

/PhotoAlbum/trunk/src/ak/photoalbum/images/jiu/JiuResizer.java
23,7 → 23,7
implements ImageResizer
{
protected static final int DEFAULT_ALPHA = 0xff000000;
protected static final int FILTER_TYPE = Resample.FILTER_TYPE_LANCZOS3;
protected static final int FILTER_TYPE = Resample.FILTER_TYPE_HERMITE;
/*
Possible type small, ms medium, ms quality
-----------------------------------------------------------
45,6 → 45,8
 
public BufferedImage resize(Image origin, int newWidth, int newHeight)
{
long timeStart = System.currentTimeMillis();
 
try {
RGB24Image image = convertImageToRGB24Image(origin);
Resample resample;
66,6 → 68,11
 
throw new RuntimeException(ex.getMessage());
}
finally {
if(logger.isDebugEnabled()) {
logger.debug("resized in " + (System.currentTimeMillis() - timeStart) + " ms");
}
}
}
 
protected static BufferedImage convertToAwtImage(PixelImage image, int alpha)