Working with picture pixels

  • Thread starter Thread starter Mateo
  • Start date Start date
M

Mateo

Hi!



I have a little problem and I would appritiate some suggestions.

I want to vrite C# (or VB.Net) program which does following:

- takes one by one pixel (or few pixels at the time) and changes it's color
value



(it is VERY important to take one (or few) pixel(pixels) at the time. may
seem strange to someone, but I need it like that)



Picture format is not important. bmp, jpg.. Whatever.



Does anyone knows some control/component which could help me

develop this?

I prefer writing programs in C# or VB.Net rather than C++





Thanx anyway!
 
Mateo,

What you want to use is the LockBits method. I believe it is only for
Bitmaps, so if you have a .JPG you might have to convert it. Anyways,
LockBits will return a byte array of the pixels, and using some special
methods you can skip around from row to row. There's more info at Bob
Powell's website (http://www.bobpowell.net/lockingbits.htm). Hope this
helps.
 
Back
Top