# androidx.camera.viewfinder.compose

Standalone Composable Viewfinder for Camera

## Interfaces

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/CoordinateTransformer` | Coordinate transformer that's used to convert coordinates from one space to another. |
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/MutableCoordinateTransformer` | CoordinateTransformer where the transformMatrix is mutable. |
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/ViewfinderInitScope` | A scoped environment provided when a `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/Viewfinder.composable#Viewfinder(androidx.camera.viewfinder.core.ViewfinderSurfaceRequest,androidx.compose.ui.Modifier,androidx.camera.viewfinder.core.TransformationInfo,androidx.camera.viewfinder.compose.MutableCoordinateTransformer,androidx.compose.ui.Alignment,androidx.compose.ui.layout.ContentScale,kotlin.Function1)` is first initialized. |

## Objects

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/IdentityCoordinateTransformer` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/CoordinateTransformer` where the transformMatrix is the identity matrix. |

## Composables

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/Viewfinder.composable` | Displays a media stream with the given transformations for crop and rotation while maintaining proper scaling. |

## Top-level functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/MutableCoordinateTransformer` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/package-summary#MutableCoordinateTransformer(androidx.compose.ui.graphics.Matrix)(matrix: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Matrix)` Creates a `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/package-summary#MutableCoordinateTransformer(androidx.compose.ui.graphics.Matrix)` with the given matrix as the transformMatrix. |

## Top-level functions

### MutableCoordinateTransformer

Artifact: [androidx.camera.viewfinder:viewfinder-compose](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder) [View Source](https://cs.android.com/search?q=file:androidx/camera/viewfinder/compose/CoordinateTransformer.kt+function:MutableCoordinateTransformer) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.6.0)

```
fun MutableCoordinateTransformer(matrix: Matrix = Matrix()): MutableCoordinateTransformer
```

Creates a `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/compose/package-summary#MutableCoordinateTransformer(androidx.compose.ui.graphics.Matrix)` with the given matrix as the transformMatrix.