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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top