Processing bitmaps

J

John Dann

One of my prospective projects calls for a procedure able to iterate
through and evaluate the colour value of each single pixel in a
bitmap. In other words, I guess I'd like to map the bitmap pixels to a
byte array and prcoess that array. But I understand that there may be
complications to doing this in VB.Net, which is my only programming
language option other than VB6.

Could anyone comment on the suitability of VB.Net for this and if it
is a problem suggest what would be the simplest workaround? Maybe
there are some third-party classes - hopefully not too expensive -
that might make the job easier and maybe also allow the process to run
as efficiently as possible.

TIA
John Dann
 
H

Herfried K. Wagner [MVP]

* John Dann said:
One of my prospective projects calls for a procedure able to iterate
through and evaluate the colour value of each single pixel in a
bitmap. In other words, I guess I'd like to map the bitmap pixels to a
byte array and prcoess that array. But I understand that there may be
complications to doing this in VB.Net, which is my only programming
language option other than VB6.

Could anyone comment on the suitability of VB.Net for this and if it
is a problem suggest what would be the simplest workaround? Maybe
there are some third-party classes - hopefully not too expensive -
that might make the job easier and maybe also allow the process to run
as efficiently as possible.

Have a look at the 'Bitmap' class and its 'SetPixel' and 'GetPixel'
methods. If you want to do fast image processing, you will have to use
unsafe C#:

Part 1: <http://www.codeproject.com/cs/media/csharpgraphicfilters11.asp>
Part 2: <http://www.codeproject.com/cs/media/csharpfilters.asp>
Part 3: <http://www.codeproject.com/cs/media/edge_detection.asp>
Part 4: <http://www.codeproject.com/cs/media/imageprocessing4.asp>
Part 5: <http://www.codeproject.com/cs/media/DisplacementFilters.asp>
 

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

Top