Get the Bitmap pixels data

  • Thread starter Thread starter Arsa
  • Start date Start date
A

Arsa

Hi,

Is there anyway to get the Bitmap (pixels) data to an array or stream or
whatever but without calling GetPixel()? It's very slow. I would like to get
the pixels data and CF doesn't support LockBytes.
Any work around using native libraries? Is there anything in the OpenNETCF
framework to Do that?

Thanks in advance,
Hugoss
 
Thanks a lot. But it doesn't actually solve the problem.

I have a bitmap object and want to get the pixels data. The sample provides
2 ways: the first one uses getPixel() (extremly slow), the second one by
displaying the image in a panel then getting the info from the panel control
using gdi. That one is nice, but It gets exactly what is displayed. In my
case because when my real image size is bigger than the panel or the screen
I cant get all the data... So I need something that does the same with an
image instead of control.

Cheers,

Hugoss
 
Back
Top