android - What does Path.transform(Matrix) do to a line? -


What is the calculation when I execute the following code? The source code of both classes refers to the basic methods, unfortunately.

  path path = new path (); Path.moveTo (20,20); Path.lineTo (40,20); Matrix matrix = new matrix (); Matrix.setScale (2,250,50); Path.transform (matrix);  

Take some lessons with what I have to do. For example,

ago:
enter image details here

after:
Enter image details here

me Which calculation would be required to leave alliance with the line? Note that I do not want to change the size of the text, only move it.

Use the same matrix while drawing this text. There is a set matrix method in the canvas.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -