Click here to Skip to main content
12,953,743 members (51,673 online)

Response to: does anybod know how to access pixel data?

Revision 1
Hi, This is the easiest way but slow:
System.Drawing.Bitmap oBitmap=new Bitmap("MyFile.bmp");
System.Drawing.Color color= oBitmap.GetPixel(Y,X);
oBitmap.SetPixel(X, Y, color);
The faster way might be using Windows API functions.
Posted 21-Mar-11 13:13pm by aidin Tajadod.

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 5 Nov 2009
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid