/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ int width = bi.getWidth() / scale; int height = bi.getHeight() / scale; 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; }