ScreenshotOptions

data class ScreenshotOptions(val format: ScreenshotFormat = ScreenshotFormat.PNG, val quality: Int = 100)

How to encode a screenshot.

Constructors

Link copied to clipboard
constructor(format: ScreenshotFormat = ScreenshotFormat.PNG, quality: Int = 100)

Properties

Link copied to clipboard

The image encoding to produce.

Link copied to clipboard
val quality: Int = 100

0-100. Ignored by ScreenshotFormat.PNG, which is always lossless.