1

I have made the below mentioned changes in my whodunit file but still the new image that is created is exactly similar to clue.bmp the changes that i have made in my programme are shown in the below picture

someone please help...

1

What your code does is for every pixel create a variable to store the parameters of the pixel, then assign the value that you want for red, green and blue, then fread() overwrites those values with the ones of the clue.bmp, and finally fwrite() stores it in the output file. So what you are doing is copying clue.bmp, thats why looks exacly the same.

What you need to do is first create the variable, tha same way you did. Then call fread() to copy the values of clue.bmp in the variable, then you can modify the color values in the way you decide in order to enhance the message on clue.bmp. Finally use fwrite() to store the modified color values in the output file.

2
  • I have done that, unfortunately it is not modifying mine – user7399 Jul 16 '15 at 2:45
  • @VictorShihaoLin Are you sure your program looks exactly the same?, if its different i think is better if you open a new question, if not try to explain were you think is failing here. – wallek876 Jul 16 '15 at 9:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .