SHARE
TWEET

Untitled

a guest Apr 19th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (px[0] => 0 && px[0] <= 255) {
  2.                 img1->pixels[idx] = (unsigned char)px[0];
  3.             } else if (px[0] > 255) {
  4.                     img1->pixels[idx] = 255;
  5.                 } else {
  6.                     img1->pixels[idx] = 0;
  7.                 }
  8.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top