Revision: 1734
Updated Code
at November 10, 2006 00:09 by whitetiger
Updated Code
public BufferedImage zoomOut(BufferedImage bi, int scale)
{
int width = bi.getWidth() / scale;
int height = bi.getHeight() / scale;
BufferedImage biScale = new BufferedImage(width, height, bi.getType());
for(int i=0; i<width; i++)
for(int j=0; j<height; j++)
biScale.setRGB(i, j, bi.getRGB(i*scale, j*scale));
return biScale;
}
Revision: 1733
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 9, 2006 23:54 by whitetiger
Initial Code
public BufferedImage zoomOut(BufferedImage bi, int scale)
{
int width = bi.getWidth() / scale;
int height = bi.getHeight() / scale;
BufferedImage biScale = new BufferedImage(width, height, bi.getType());
for(int i=0; i<width; i++)
for(int j=0; j<height; j++)
biScale.setRGB(i, j, bi.getRGB(i*scale, j*scale));
return biScale;
}
Initial URL
Initial Description
Initial Title
Java - ZoomOUT image
Initial Tags
image, java, filter, images
Initial Language
Java