The question is not clear at all (please see my comments to the question), but in all such cases you should work using
System.Drawing.Bitmap
and
System.Drawing.Bitmap.LockBits
to access image data.
See this, with code samples:
http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.lockbits.aspx[
^].
Due to performance issues, you should avoid using
GetPixel/SetPixel
by all means, unless this is just a couple pixels or so.
See also this article for the detailed explanations:
http://www.bobpowell.net/lockingbits.htm[
^].
—SA