---
title: "setFrom"
description: "Set the matrix values the native [android.graphics.Matrix]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun Matrix.setFrom(matrix: android.graphics.Matrix)
```


Set the matrix values the native `android.graphics.Matrix`.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun android.graphics.Matrix.setFrom(matrix: Matrix)
```


Set the native `android.graphics.Matrix` from `matrix`.



