Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sepia(int height, int width, RGBTRIPLE image[height][width])
- {
- for ( int i=0; (i<height-1); i++)
- {
- for ( int j=0; j <(width-1); j++)
- {
- if( image[i][j].rgbtRed > 255)
- {
- image[i][j].rgbtRed = 255;
- }
- image[i][j].rgbtRed = round((.393* image[i][j].rgbtRed) + (.769 * image[i][j].rgbtGreen) +(.189 * image[i][j].rgbtBlue));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement