Viewport

@Serializable
data class Viewport(val x: Double, val y: Double, val width: Double, val height: Double, val scale: Double)

Viewport for capturing screenshot.

Constructors

Link copied to clipboard
constructor(x: Double, y: Double, width: Double, height: Double, scale: Double)

Properties

Link copied to clipboard

Rectangle height in device independent pixels (dip).

Link copied to clipboard

Page scale factor.

Link copied to clipboard

Rectangle width in device independent pixels (dip).

Link copied to clipboard
val x: Double

X offset in device independent pixels (dip).

Link copied to clipboard
val y: Double

Y offset in device independent pixels (dip).