Convert RBG char array to RGB int value in Java
<p>I have a <code>char[] rbg</code> containing :</p>

<ul>
<li><code>rgb[0]</code> : red value</li>
<li><code>rgb[1]</code> : green value</li>
<li><code>rgb[2]</code> : blue value</li>
</ul>

<p>I want to use the method <code>BufferedImage::setRGB(x, y, int rgb)</code></p>

<p>How can I proceed to convert the char array to the int value ?</p>

<p>Note : I use Java</p>

<p><strong>Edit : I'm looking for the fastest solution</strong></p>

<p>Thanks</p>
