473,405 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Processing bitmaps

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
Nov 20 '05 #1
3 1099
Hi,

Bitmap.getpixel
http://msdn.microsoft.com/library/de...pixeltopic.asp

Ken
---------------
"John Dann" <ne**@prodata.co.uk> wrote in message
news:76********************************@4ax.com...
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

Nov 20 '05 #2
* John Dann <ne**@prodata.co.uk> scripsit:
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>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
C# will be needed to get decent performance like others already stated. A
good example
http://msdn.microsoft.com/library/de...rp11152001.asp

Yves

"John Dann" <ne**@prodata.co.uk> schreef in bericht
news:76********************************@4ax.com...
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

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brad Smalling | last post by:
Does anyone know if there is a reason to prefer bitmaps over icons (or vice-versa) when populating image lists? I've always favored icons because of their built-in transparency (although I've...
1
by: Mark Evans | last post by:
I have a dialog box and on it I want to display a bitmap, which will change at various times during the program. My problem is that the bitmaps will not be the same each time. I want the user to...
4
by: Nathan | last post by:
Hello, I'm needing some advice: I have an app for which I've built a timer out of multiple bitmaps--a clock with a moving hands. I've saved each hand position (1 second, 2 seconds, etc.) as a...
1
by: John | last post by:
I have 76 bitmaps (640 x 480) and need to combine them together to form a big one (about 3840 x 2880). Those 76 bitmaps overlap each other with a small portion. Is there any way to do it? Thanks.
1
by: Peter Stojkovic | last post by:
What is the correct way to move BITMAPS and drawings inside a windows-forms from one project to another project. The problem is the following row: Dim resources As...
2
by: Mike | last post by:
Hello everybody. I am drawing a country map that consists of 149 municipality bitmaps, each around 25 Kb. I draw it onto the in-memory bitmap, then draw it on the picture box. I use C++, but...
1
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I need to combine several bitmaps together to form a single bitmap. Can anyone show me some similar sample code? Thanks. AJ
1
by: nkumarin001 | last post by:
Hi, Can anyone help me in this matter:- When i was studying locally managed tablespaces i came across bitmaps that are used in locally managed tablespaces it stated that:- "Locally...
6
by: AramAz | last post by:
I'm trying to use unsafe mode to do some operations on two different bitmaps. -I loaded 2 images -Called my Change method. - Locked their Bitmap data as bmDataLeft and bmDataRight. - Doing some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.