bhavikkp Posted June 30, 2011 Posted June 30, 2011 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?//// Quote
Administrators PlausiblyDamp Posted June 30, 2011 Administrators Posted June 30, 2011 Just trying to understand what you are after.... Are you wanting to be able to load an image and then edit the image? Or have I missed the point? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bhavikkp Posted July 1, 2011 Author Posted July 1, 2011 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 Quote
bhavikkp Posted July 20, 2011 Author Posted July 20, 2011 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 Quote
EFileTahi-A Posted November 8, 2011 Posted November 8, 2011 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.