FixedScale

data class FixedScale : ScaleFit
kotlin.Any
   ↳ androidx.ui.graphics.FixedScale

ScaleFit implementation that always scales the dimension by the provided fixed floating point value

Summary

Public constructors

<init>(value: Float)

ScaleFit implementation that always scales the dimension by the provided fixed floating point value

Public methods

Float
scale(srcSize: PxSize, dstSize: PxSize)

Computes the scale factor to apply to both dimensions in order to fit the source appropriately with the given destination size

Properties

Float

Public constructors

<init>

FixedScale(value: Float)

ScaleFit implementation that always scales the dimension by the provided fixed floating point value

Public methods

scale

fun scale(
    srcSize: PxSize,
    dstSize: PxSize
): Float

Computes the scale factor to apply to both dimensions in order to fit the source appropriately with the given destination size

Properties

value

val value: Float