Click here to Skip to main content
15,877,857 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i convert the RGB of each Pixel to binary and store it in an array ?

1 solution

Use the Bitmap.LockBits method[^] (the linked page features sample code).
Share this answer
Saad Mahdi Salh 18-Feb-13 10:02am    
is there another way ??
Matt T Heffron 18-Feb-13 13:07pm    
What is wrong with what was suggested? You could use GetPixel() for each pixel but it is INCREDIBLY INEFFICIENT!

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