Please help some one for how to reduce the size of image in java
my problem is
i am taking one image as input for java program and taking output as .bmp image
for creating new image i am using the following code
for (int i = 0; i < width; i++)
{
for (int j = 0; j < height; j++)
{
Color c = new Color(color2[i][j], color2[i][j], color2[i][j]);
image1.setRGB(i, j, c.getRGB());
}
}
ImageIO.write(image1, "bmp", new File("hh5_binary_Adjust.bmp"));
but if i use the above code i am getting 6.5 mb size for one A4 size paper so please help me to get a minimum length of image without modifying the file extension that is bmp