![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 1
Rep Power: 0
![]() |
text boxs and counts
what i would like to be able to do is display the start and end point in a textbox according to a count where every group of black pixels appear in the row of a picture box that contains a black and white image with each start and end point getting a separate row in the text box
i.e when the program checks each pixel in the row it will increment a count as long as its a white pixel(or not a black one) when the pixel is no longer white (or becomes black)it will then display the count in a textbox indicating the position of the start of the group of black pixels .then it will continue checking each pixel and incrementing the count untill it comes across a white pixel .then it will display the position of the last black pixel indicating the position of the end of the group of black pixels.the program would then keep checking the pixels dispalying the count value for the start and end of the groups of black pixels until it reaches the end of the row i am stuck badly trying to get the code going and its holding me up big time i have tried a number of different ways of getting the program to work any body reckon they could get somthing going w=white pixel b=black pixel wwwbbbwwwbbb = text box showing 4,6 ................................................. 10,12 ` |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|