Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?////

  • 3 weeks later...
Posted

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

  • 3 months later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...