Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (px[0] => 0 && px[0] <= 255) {
- img1->pixels[idx] = (unsigned char)px[0];
- } else if (px[0] > 255) {
- img1->pixels[idx] = 255;
- } else {
- img1->pixels[idx] = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement