Red has been turned to white, now how do I turn blue to black?
I have written a new loop next to the first loop but it does not work.
if image is all blue
red = 0x00
blue = 0x00
green = 0x00
Update: I have written this code and all I get is an error message.
if(triple.rgbtBlue < 0xff0000 || triple.rgbtBlue > 0x000000)
{
triple.rgbtRed = 0x00;
triple.rgbtBlue = 0x00;
triple.rgbtGreen = 0x00;
}
Update 2: I have changed the code and now almost everything turns black. What am I doing wrong?
if(triple.rgbtRed == 0xff)
{
triple.rgbtRed = 0xff;
triple.rgbtBlue = 0xff;
triple.rgbtGreen = 0xff;
}
if(triple.rgbtBlue == 0xff)
{
triple.rgbtRed = 0x00;
triple.rgbtBlue = 0x00;
triple.rgbtGreen = 0x00;
}