FixedScale


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

Summary

Public constructors

FixedScale(value: Float)
Cmn

Public functions

open ScaleFactor
computeScaleFactor(srcSize: Size, dstSize: 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

Float
Cmn

Public constructors

FixedScale

FixedScale(value: Float)

Public functions

computeScaleFactor

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

val valueFloat