2 Attachment(s)
problem with pixel values of an image
i am writing a code to encrypt/decrypt image files.
first i am reading pixel values from the source image
then converting it into alpha array,red array,green array,blue array
then after manipulating the arrays
i am writing the pixel values to get encrypted image
//i am printing the pixel values which i am writing to file
all is well till here(image gets encrypted)
but when i am reading the encrypted image again(for decryption)
the pixel values are different from what i have stored during encryption
as i am not able to read the original pixel values which were stored during encryption phase
i am not able to decrypt the image correctly
part of the code i am is attached
please help