Partager via


ImageView.ImageMatrix Property

Definition

Returns the view's optional matrix. -or- Adds a transformation Matrix that is applied to the view's drawable when it is drawn.

public virtual Android.Graphics.Matrix? ImageMatrix { [Android.Runtime.Register("getImageMatrix", "()Landroid/graphics/Matrix;", "GetGetImageMatrixHandler")] get; [Android.Runtime.Register("setImageMatrix", "(Landroid/graphics/Matrix;)V", "GetSetImageMatrix_Landroid_graphics_Matrix_Handler")] set; }
[<get: Android.Runtime.Register("getImageMatrix", "()Landroid/graphics/Matrix;", "GetGetImageMatrixHandler")>]
[<set: Android.Runtime.Register("setImageMatrix", "(Landroid/graphics/Matrix;)V", "GetSetImageMatrix_Landroid_graphics_Matrix_Handler")>]
member this.ImageMatrix : Android.Graphics.Matrix with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns 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().

Java documentation for android.widget.ImageView.getImageMatrix().

Property setter documentation:

Adds a transformation Matrix that is applied to the view's drawable when it is drawn. Allows custom scaling, translation, and perspective distortion.

Java documentation for android.widget.ImageView.setImageMatrix(android.graphics.Matrix).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to