android - Implement 2D rotation using multi touch -


in code implemented:

  • zooming (with double tap , touble touch event)
  • scrolling
  • coordinate transformation pixel utm

using class matrix, proportions. in way coordinates correct.

i add rotation image, don't know how it. me?

this image activity:

public class mapactivity extends activity {  public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);      touchimageview img = new touchimageview(this);     img.setimageresource(r.drawable.planimetria);     img.setmaxzoom(10f);     setcontentview(img); } 

this java file class:

http://pastebin.com/afukpgyz

thank help.


Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -