| | |
A Box in PicBox
Thread Solved
![]() |
•
•
Join Date: Jun 2006
Posts: 29
Reputation:
Solved Threads: 0
erm greetings..
i have a situation here regarding picturebox. there are 2 boxes, 1 is for template image, and one for image to be compared with. i planned to make the user able to draw a box in template image picbox, as a region where the image the other picbox will be compared with, in terms of its colour components. it will display the difference between the two images in percentage.
the problem is making the box visible when doing the region selection part. i cant seem to properly generate temporary marking lines on the template image. all i get in the end is an array of boxes in different size within a maximum size box, which all of the boxes start at the point of the click.
i can however, make a box at the end of the click and drag procedure, but that doesnt give any visual feedback during the region selection process, which is the clicking and dragging. the box is not there, until you release the mouse button, that makes it hard for the user.
i used the usual
TempBox.DrawWidth=1
Tempbox.DrawLine (x,y)
to draw lines between initial clicking points and other points.
any suggestions would be greatly appreciated.
thanks in advance
i have a situation here regarding picturebox. there are 2 boxes, 1 is for template image, and one for image to be compared with. i planned to make the user able to draw a box in template image picbox, as a region where the image the other picbox will be compared with, in terms of its colour components. it will display the difference between the two images in percentage.
the problem is making the box visible when doing the region selection part. i cant seem to properly generate temporary marking lines on the template image. all i get in the end is an array of boxes in different size within a maximum size box, which all of the boxes start at the point of the click.
i can however, make a box at the end of the click and drag procedure, but that doesnt give any visual feedback during the region selection process, which is the clicking and dragging. the box is not there, until you release the mouse button, that makes it hard for the user.
i used the usual
TempBox.DrawWidth=1
Tempbox.DrawLine (x,y)
to draw lines between initial clicking points and other points.
any suggestions would be greatly appreciated.
thanks in advance
why can't you do it on mouse_move? On mousedown set a boolean flag variable that says that the mouse is down. On mouseup clear the boolean flag variable (set it to false). On the mousemove procedure, check if the flag variable is true, and if so, draw the line..... if the flag variable is false, don't draw the line.... or am I completely missing the mark here?
•
•
Join Date: Jun 2006
Posts: 29
Reputation:
Solved Threads: 0
Not entirely. Before this I did it in mousemove with a flag, that's when the array of boxes appear. Small boxes inside bigger boxes. What i'm trying to do here is a region selection box, which defines the border of the region in the image I'm going to compare with another. Is there any specific function that can be readily used?
![]() |
Similar Threads
- loging in to samba from a xp box (*nix Software)
- dial up box (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: customizing the vb datareport
- Next Thread: ActiveX multithreading
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows






