public byte[] GetPixelRow()
{
SampleRow row = m_samples[m_currentRow];
List<byte> result = new List<byte>();
for (int i = 0; i < row.Length; ++i)
{
//Sample sample = row[i];
row.WriteToList(result);
//for (int j = 0; j < sample.ComponentCount; ++j)
// result.Add((byte)sample[j]);
}
++m_currentRow;
return result.ToArray();
}