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.
 

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