CaptureFormat enum
The image encoding a capture is delivered in.
Both tiers that can produce pixels natively (CDP's
Page.captureScreenshot, the macOS CoreGraphics bridge) can emit PNG
(lossless) or JPEG (lossy, far smaller). The family never transcodes
between them on the far side: a tier that cannot honor the requested
format refuses loudly rather than silently shipping a different one.
Values
- png → const CaptureFormat
-
Lossless PNG — the default; every tier can produce it.
- jpeg → const CaptureFormat
-
Lossy JPEG — much smaller for photographic/UI content, at the cost of artifacts around sharp edges. Requires a quality setting.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CaptureFormat> - A constant List of the values in this enum, in order of their declaration.