Return the rgb values from a jpg image
Please I am new to java image. I created an image by first filling random numbers for each pixel (R value, G value and B value) then I create an image Icon. What I have noticed is that when I retreuived the RGB values again from the buffer before writing to a file the values for RGB was correct, but after writing them to a file and then open and read these values I got something different. I need to retreive exactly the same values that I choosed for each pixel!!!
I greately appreciate your help.
Note: Please let me know if you would like me to send you the code.
Re: Return the rgb values from a jpg image
Can you show the code for how you are writing to a file and reading them.
but after writing them to a file and then open and read these values I got something different.