Get the first 13 bit from short
<p>I have byte array</p>

<pre><code>byte[] PixelData = {255,235};
</code></pre>

<p>I want to convert it to short and before that I want to get the first 13 bit before the conversion because when I convert using the following code improper values return </p>

<pre><code>short val1 = 0;
val1 = BitConverter.ToInt16(PixelData, 0);
</code></pre>

<p>any ideas how to do that</p>
