to display image directly on forms in vb.net

bhavikkp

Newcomer
Joined
Jun 30, 2011
Messages
3
Location
mumbai
problem statement is to open the image file on form & edit the image in same form & to set the properites of the object in that image when clcik on the image & then provide the edited image to controller which will run a robo on it



Input image is autocad factory map



I also wanted to know how can i get the object of autocad files as they have table block structure inside their file format

i wnat to store these image so what should i use????



Can any body help in any of above case?////
 
ya exactly

to load image of format dwg or bmp if converted & then edit the file & store the object information in database using vb.net forms
 
k i have another problem let we discusss on that

now i have picutre in picture box & i want that if mouse is click it catch the cordinate of already exisiting picture & draw the requested opbject i.e say line


i.e i wnat to implement to check the nearest cordinate when the mouse is click if already an object is present

or simply to join two point which are already on the picturebox

pls reply any body
 
Regarding your last post:
If I understood correctly, you want to click in a picture box and retrieve its relative mouse position (x,y coordinates). Then you want to know if that position matches or intersects with an object that might already be there?

If this is the case than you need to keep tracking of all that you draw or that is present within the picture box.

What I suggest is creating a class say 'class_gfxObject' or an HashTable to hold all the information regarding each graphical object. Use these objects to store rectangles, lines, bitmaps etc. The final step is looping through all items resident in these objects and see if the designated mouse position intersects with the coordinates of these objects.
 
Back
Top