title: Pixel data to Image
body: <p>I have list pixels in this format</p>
  
  <pre><code>ArrayList list = new ArrayList();
  list.add(Red);
  list.add(Blue);
  list.add(Green);
  </code></pre>
  
  <p>I have many values like this. I want to convert the array list to image.. Tried a lot but haven't found any proper material.</p>
  
  <p><strong>EDIT:</strong> This may helps:</p>
  
  <pre><code>List&lt;byte&gt; pic = new List&lt;byte&gt;(); 
  for (int j = 0; j &lt; headdata.Count; j++)
  { 
      if(headdata.ElementAt(j).getHead() == i) 
      { 
          pic.Add((byte)headdata.ElementAt(j).getRed());
          pic.Add((byte)headdata.ElementAt(j).getGreen());
          pic.Add((byte)headdata.ElementAt(j).getBlue()); 
      }
  } 
  </code></pre>