Retrieving pixel matrix

  • Thread starter Thread starter Micheal
  • Start date Start date
M

Micheal

How to retrieve pixel matrix of image in C# using safe
code (without using GetPixel??i want some method which is
fast enough for good applications.

Plz help!!

Thanks
 
I don't think there's any great way to do it. Since you mentioned safe code
I assume you already know about LockBits.

One possibility would be to write the image out to a MemoryStream and then
look at the resulting byte array. I don't know how fast that would be, and
you'd have to understand the image file format.
 
Back
Top