I have struggled to progress with the whodunit problem for hours: I watched the walkthrough from this year and older; I read various other forum question; and I read various documentation.
The walkthroughs proved valuable and led me to start by running an if function that changed all pixels that do not have a full value (0xff) for green or blue with:
fread(&triple, sizeof(RGBTRIPLE), 1, inptr);
if (triple.rgbtGreen ==!0xff | triple.rgbtBlue ==!0xff)
{
triple.rgbtGreen=0xff;
triple.rgbtBlue = 0xff;
}
This code ended up turning most of my code white, leaving a sentence in light blue that seems to be the answer. A few questions:
Why did it work? Shouldn't the blue pixels have been converted to white as well since the blue pigments in verdict do not appear to be completely blue and thus should not have triple.rgbtBlue = 0xff? Thus they too should have been converted to white, theoretically.
I tried to see what pixels changed with:
xxd -c 36 -g 3 -s 54 verdict.bmp
and they all appear ffffff, which leads me to wonder how I see the blue print at all?
- It feels a bit anti-climatic since I feel I don't have a mastery on much of the code, except for how to change the pixels with an if function....