title: Increasing intensity of RGB
body: <p>I am stuck in a problem and dont know where to look at.
  I need to increase intensity of particular color in image, like R, G, or Blue.
  When I am doing that, certain colors are not rendering properly.</p>
  
  <p>Below is the image that I took for testing:
  <a href="https://i.stack.imgur.com/9PiAc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9PiAc.jpg" alt="enter image description here"></a></p>
  
  <p>Now when I increase like Green color:</p>
  
  <pre><code>A = Color.alpha(p);
  R = Color.red(p);
  G = (int)(Color.green(p)*1.2);
  B = Color.blue(p);
  </code></pre>
  
  <p>This is what I get:
  <a href="https://i.stack.imgur.com/yKz7r.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yKz7r.jpg" alt="enter image description here"></a></p>
  
  <p>What can be the solution to fix those Pink patches.</p>
  
  <p>Thanks</p>