Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (choice)
- {
- case 'b': //bylo red
- for (size_t i = 0; i < file_info->height; i++){
- for (size_t j = 0; j < file_info->widhth ; j++){
- pixels[i][j].red = num;
- }
- }
- break;
- case 'r': //bylo blue
- for (size_t i = 0; i < file_info->height; i++){
- for (size_t j = 0; j < file_info->widhth; j++){
- pixels[i][j].blue = num;
- }
- }
- break;
- case 'g':
- for (size_t i = 0; i < file_info->height; i++){
- for (size_t j = 0; j < file_info->widhth; j++){
- pixels[i][j].green = num;
- }
- }
- break;
- default:
- puts("Try again!");
- goto link11;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement