How can I can the integer value (range 0-255) of a grayscale image pixel
<p>Hi I want to get the integer values (0-255 range) of a gray scale image ....this code shows me the R,G,B values not one value..how can i get it?</p>

<pre><code>Bitmap temp1 = image1;
for (int i = 0; i &lt; temp1.Height; i++)
{
    for (int j = 0; j &lt; temp1.Width; j++)
    {
        Color cl = new Color();
        cl = temp1.GetPixel(i, j);
    }
}
</code></pre>