Android Question select canvas to edit

sufyan

Member
Licensed User
Longtime User
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.



 

klaus

Expert
Licensed User
Longtime User
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:
Upvote 0

sufyan

Member
Licensed User
Longtime User
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
Top