FixedScale
-
Cmn
data class FixedScale : ContentScale
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 constructors
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