ScreenshotParams

@Serializable
data class ScreenshotParams(val format: ImageFormat? = null, val quality: Int? = null, val optimizeForSpeed: Boolean? = null)

Encoding options for a screenshot.

Official doc

Constructors

Link copied to clipboard
constructor(format: ImageFormat? = null, quality: Int? = null, optimizeForSpeed: Boolean? = null)

Properties

Link copied to clipboard

Image compression format (defaults to png).

Link copied to clipboard

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

Link copied to clipboard
val quality: Int?

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