struct Protocol::HeadlessExperimental::ScreenshotParams
- Protocol::HeadlessExperimental::ScreenshotParams
- Struct
- Value
- Object
Overview
Encoding options for a screenshot.
Included Modules
- JSON::Serializable
Defined in:
protocol/headless_experimental.crConstructors
Instance Method Summary
-
#format : String | Nil
Image compression format (defaults to png).
-
#optimize_for_speed : Bool | Nil
Optimize image encoding for speed, not for resulting size (defaults to false)
-
#quality : Int::Primitive | Nil
Compression quality from range [0..100] (jpeg only).
Constructor Detail
Instance Method Detail
def optimize_for_speed : Bool | Nil
#
Optimize image encoding for speed, not for resulting size (defaults to false)