Matrix: limiting translate and scale in android -


i drawing image in android using canvas. i'm using surfaceview's ontouch method let user scale , move image.

i can limit scaling have problem limiting translate. can limit translate if scale of matrix in original form, if scale changed i'm having problem limiting translation.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -