AspectRatio

data class AspectRatio(val width: Double = 1.0, val height: Double = 1.0)

Aspect ratio is the ratio of the width to the height of an image or screen.

Constructors

Link copied to clipboard
constructor(width: Double = 1.0, height: Double = 1.0)
constructor(source: Map<String, Any?>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Height component of the aspect ratio.

Link copied to clipboard

Width component of the aspect ratio.

Functions

Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JsonObject
Link copied to clipboard
fun toJsonString(config: ToJsonConfiguration = ToJsonConfiguration.default()): String