A
Amar
hello all,
I am accepted an a JPEG file from user and created a BufferedImage
from it with type as TYPE_INT_RGB.
By using BufferedImage.getRBG method to get the pixels, I displayed
those pixels on the screen.
From those array of pixels, I created another image and saved it by
another name.JPG
Now the problem is when I am trying to display the pixels of the newly
created image they are different from the old image.
Someone told me that this problem is due to JPEG compression.
Can anyone suggest me a way to save the image in JPEG form in this
situation?
Basically I am writing an application where I want to compare the two
above images. But their pixels are not matching.
I am accepted an a JPEG file from user and created a BufferedImage
from it with type as TYPE_INT_RGB.
By using BufferedImage.getRBG method to get the pixels, I displayed
those pixels on the screen.
From those array of pixels, I created another image and saved it by
another name.JPG
Now the problem is when I am trying to display the pixels of the newly
created image they are different from the old image.
Someone told me that this problem is due to JPEG compression.
Can anyone suggest me a way to save the image in JPEG form in this
situation?
Basically I am writing an application where I want to compare the two
above images. But their pixels are not matching.