471,627 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Working with picture pixels


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!
Feb 17 '06 #1
2 1511
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.

Feb 17 '06 #2
Thx man!
U rock!

"JustinC" <ju***********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.

Feb 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Geoff Turner | last post: by
4 posts views Thread by Dave | last post: by
5 posts views Thread by jason.tadeo | last post: by
10 posts views Thread by Stephen.Schoenberger | last post: by
8 posts views Thread by Louis | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.