# FixedScale

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/layout/ContentScale.kt+class:androidx.compose.ui.layout.FixedScale) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  data class FixedScale : ContentScale
  ```

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/ContentScale` implementation that always scales the dimension by the provided fixed floating point value

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/FixedScale#FixedScale(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/ScaleFactor` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/FixedScale#computeScaleFactor(androidx.compose.ui.geometry.Size,androidx.compose.ui.geometry.Size)(srcSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size, dstSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size)` Computes the scale factor to apply to the horizontal and vertical axes independently of one another to fit the source appropriately with the given destination | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/FixedScale#value()` | Cmn |

## Public constructors

### FixedScale

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
FixedScale(value: Float)
```

## Public functions

### computeScaleFactor

Cmn

```
open fun computeScaleFactor(srcSize: Size, dstSize: Size): ScaleFactor
```

Computes the scale factor to apply to the horizontal and vertical axes independently of one another to fit the source appropriately with the given destination

## Public properties

### value

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val value: Float
```