scale

abstract fun scale(factor: Double): T

Scale T using the given factor. Affects: properties defined by inheritor.

Return

A scaled version of this T object

Parameters

factor

The multiplication factor, e.g. 0.5 decreases by 50% and 2.0 increases by 200%


open fun scale(maxWidth: Int, maxHeight: Int): T

Scale T to fit within the given maxWidth and maxHeight.

Return

A scaled version of this T object

Parameters

maxWidth

The maximum width, in pixels

maxHeight

The maximum height, in pixels