I read an image into a byte array this way
PHP Code:
for i=0 to WIDTH
  
for j=0 to HEIGHT
     data
[i,j]=(byte)img.GetPixel(i,j).ToArgb(); 
but when I show it, the image becomes gray . I am so confused.

Could someone help me please ? Thank you.