Click here to Skip to main content
13,252,362 members (61,806 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 view
Posted 21 Mar 2011

does anybod know how to access pixel data?

, 21 Mar 2011
Rate this:
Please Sign up or sign in to vote.
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.Hope this can help you.

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.

Hope this can help you.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

aidin Tajadod
Web Developer Volt
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171114.1 | Last Updated 21 Mar 2011
Article Copyright 2011 by aidin Tajadod
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid