Reputation:
I've seen this question asked in different forums, but no one ever gave an answer. Does getMatrix deal with the images position within the view while getImageMatrix deals with the size of the image relative to itself?
Edit:
Here are what the docs say:
Matrix getImageMatrix ()
Return the view's optional matrix. This is applied to the view's drawable when it is drawn. If there is no matrix, this method will return an identity matrix. Do not change this matrix in place but make a copy. If you want a different matrix applied to the drawable, be sure to call setImageMatrix().
.
Matrix getMatrix ()
The transform matrix of this view, which is calculated based on the current rotation, scale, and pivot properties.
Upvotes: 1
Views: 3097
Reputation: 5262
getMatrix() returns matrix that you can use to manipulate the view itself, translate, rotate, scaled or skew the view. It is method of View
class. While getImageMatrix() returns matrix for manipulating drawable inside ImageView
and it is declared in ImageView
class.
Upvotes: 4