for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
int intPixel = image.getRGB(i, j);
image.setRGB(i, j, intPixel);
}
}
ImageIO.write(image, "JPG", new File("img/newfile01.jpg"));
This code make a 96dpi image but the source image was 72 dpi! why