I have an image on the canvas. The user should be able to select different areas of the image and should be able to label them.Something like the "Select tool", "Add Text" in paint.
I have been trying to achieve this by drawing a rectangle but it does not look pretty. Can you suggest some libraries that I can take a look at that can help here? Also, do we have APIs for drawing callouts and things alike?
Apart from what I've asked in the first post above, I also want to know how can we resize an image drawn on the canvas. I can guess we would have to apply some sort of transformation to the Paint object or perhaps setBounds on the Image. But I am still unsure nonetheless.
Any pointers, links to tutorials will be helpful.
[I am raising this unanswered curiosity from the depths just to give it another chance!]
Thanks.
Ed Burnette
Author
Ranch Hand
Joined: Jun 10, 2003
Posts: 142
posted
0
It sounds like you're on the right track. Android has the View APIs for User Interface controls like lists and buttons, and Graphics/Canvas APIs for drawing arbitrary things (like ships and explosions). There are no special APIs for callouts; Canvas drawing is fully custom.