Click here to Skip to main content
11,428,876 members (61,735 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 14:13pm by aidin Tajadod.
Tags:


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