sufyan Member Licensed User Longtime User Oct 20, 2015 #1 hi all thanking you for all support I would like to design application which the user can draw using canvas , then he/she can select the canvas to edit like line , rectangular or circle showing the boundary of canvas like the pictures below. I know how to draw it but the problem with me how I can selected using the finger and edit.
hi all thanking you for all support I would like to design application which the user can draw using canvas , then he/she can select the canvas to edit like line , rectangular or circle showing the boundary of canvas like the pictures below. I know how to draw it but the problem with me how I can selected using the finger and edit.
sufyan Member Licensed User Longtime User Oct 21, 2015 #2 please any hint ?? specially for line Upvote 0
klaus Expert Licensed User Longtime User Oct 21, 2015 #3 It seems that you are trying to write a kind of CAD program. The second image looks like a 3D CAD program screen. It's not an easy task. You would need to memorize objects (points, lines, shapes etc) with their reference points with all coordinates. Then when you want to select an object you need to check if the current finger coordinates are close to one componant of the objects. If yes, you can then edit the object. Editing graphics with the finger is not that easy. To have an idea you could have a look at this thread Resize and Crop. Last edited: Oct 21, 2015 Upvote 0
It seems that you are trying to write a kind of CAD program. The second image looks like a 3D CAD program screen. It's not an easy task. You would need to memorize objects (points, lines, shapes etc) with their reference points with all coordinates. Then when you want to select an object you need to check if the current finger coordinates are close to one componant of the objects. If yes, you can then edit the object. Editing graphics with the finger is not that easy. To have an idea you could have a look at this thread Resize and Crop.
stevel05 Expert Licensed User Longtime User Oct 22, 2015 #4 This may give you a start https://www.b4x.com/android/forum/threads/class-screen-hotspots.29592/ Upvote 0
sufyan Member Licensed User Longtime User Oct 22, 2015 #5 Klaus thanking you for your help , yes its CAD application, this is what I m looking for Stevel05 I appreciate your support , this really close to my application. Upvote 0
Klaus thanking you for your help , yes its CAD application, this is what I m looking for Stevel05 I appreciate your support , this really close to my application.