my code works but the sky looks shiny blue, its like its working in all others pixels but not on the sky, i do not get what i am doing wrong.
void sepia(int height, int width, RGBTRIPLE image[height][width])
{
BYTE red, auxred;
BYTE blue, auxblue;
BYTE green, auxgreen;
for(int i = 0; i < height; i++)
{
for(int j = 0; j < width; j++)
{
red = image[i][j].rgbtRed;
blue = image[i][j].rgbtBlue;
green = image[i][j].rgbtGreen;
auxred = round((float).393 * red + (float).769 * green + (float).189 * blue);
if(auxred > 0xff)
{
image[i][j].rgbtRed = 0xff;
}else
{
image[i][j].rgbtRed = auxred;
}
auxblue = round((float).272 * red + (float).534 * green + (float).131 * blue);
if(auxblue > 0xff)
{
image[i][j].rgbtBlue = 0xff;
}else
{
image[i][j].rgbtBlue = auxblue;
}
auxgreen = round((float).349 * red + (float).686 * green + (float).168 * blue);
if(auxgreen > 0xff)
{
image[i][j].rgbtGreen = 0xff;
}else
{
image[i][j].rgbtGreen = auxgreen;
}
}
}
return;
}