Click here to Skip to main content
12,395,143 members (61,556 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.
Tags:


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