473,403 Members | 2,323 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,403 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 1592
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John Ortt | last post by:
Hi there everyone, I have a part info form which has a faded image of our company logo as a background. I want to replace the faded image with a bright red warning image on items which have run...
14
by: hamil | last post by:
I am trying to display an image in a picture box. The image is a group 4 fax black and white image of a piece of sheet music. The original resolution is 300 X 300 dpi. I want to have the picture...
2
by: Geoff Turner | last post by:
Hi all, I have an application that requires me to load an image into a picture or image or picclip control.Picture will be JPG format and of size 800 X 600 pixels. It will be displayed as say, 200...
4
by: Dave | last post by:
Does any one know how to compare pixels in a picture, or a dll that will allow me to do so. I need to be able to find objects in a picture. Like a table, chair, car etc. Compare a given picture say...
8
by: Lad | last post by:
Is it possible to change a picture resolution with Python? Let's say I have a picture with a resolution of 96 dpi and I would like to increase to 256dpi or higher. Thank you for your reply. LL
5
by: jason.tadeo | last post by:
I was wondering if anyone does any uploading picture scripts or how to do it where i could upload a picture and use php to change the picture size to what i want it to be. Anyone know where i could...
0
debasisdas
by: debasisdas | last post by:
Add two picture boxes to a form. Set the ScaleMode property of both the pictureboxes to 3-Pixels. General declaration -------------------------------- Const ubx = 1000 Const uby = 500 Dim...
10
by: Stephen.Schoenberger | last post by:
Hello, Sorry if this is not "exactly" a C topic but I thought this would be the best place to start. I need some guidance on working with bitmap images in ANSI C. I need to "read" in a bitmap...
8
by: Louis | last post by:
Hello, My website is 910 pixels wide. The content area is 552 pixels wide. If I place a picture in the content area that is wider than 552 pixels my site becomes wider than 910 pixels. I do not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.