Click here to Skip to main content
15,910,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning to everyone. How to access the pixels in the image using C#?
Posted

1 solution

What do you want to do with the pixels?

If you want to get the color of a certain pixel, call Bitmap.GetPixel() (http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel.aspx[^])

If you want to set the color of a certain pixel, call Bitmap.SetPixel() (http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.setpixel.aspx[^])

Please understand you can answer most of your questions with a simple Google search. I pasted "How to access the pixels in the image using C#?" into Google. The sixth link answers your question with great detail.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900