|
-
Aug 6th, 2007, 04:45 PM
#1
Thread Starter
Hyperactive Member
Picturebox and Lines
Hello.
I am using a picturebox and I am drawing a BLUE line in it (always different X-Y/X-Y coords).
Once the blue line is drawn, I do a loop of all pixels from that picturebox, searching for BLUE pixels. When I hit a blue pixel, I can compare this to ANOTHER picturebox (using same X,Y coords - also using the same picture) to see if the blue line is overlapping red, black, white or yellow pixels and so on.
This works good. My only problem is that looping the entire picturebox can take quite a while on my P4-2.8ghz. (note here that I am doing several loops)
In clear, it would be wonderful if there was a quick way to know WHICH X,Y pixels were changed to BLUE after I ran the picPictureBox.Line command.
Any tips?
Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|