CaptureScreenshotParameter

@Serializable
data class CaptureScreenshotParameter(val format: String? = null, val quality: Int? = null, val clip: Page.Viewport? = null, val fromSurface: Boolean? = null, val captureBeyondViewport: Boolean? = null, val optimizeForSpeed: Boolean? = null)

Constructors

Link copied to clipboard
constructor(format: String? = null, quality: Int? = null, clip: Page.Viewport? = null, fromSurface: Boolean? = null, captureBeyondViewport: Boolean? = null, optimizeForSpeed: Boolean? = null)

Properties

Link copied to clipboard

Capture the screenshot beyond the viewport. Defaults to false.

Link copied to clipboard
val clip: Page.Viewport? = null

Capture the screenshot of a given region only.

Link copied to clipboard
val format: String? = null

Image compression format (defaults to png).

Link copied to clipboard
val fromSurface: Boolean? = null

Capture the screenshot from the surface, rather than the view. Defaults to true.

Link copied to clipboard

Optimize image encoding for speed, not for resulting size (defaults to false)

Link copied to clipboard
val quality: Int? = null

Compression quality from range 0..100 (jpeg only).