Constructor
Returns
Screenshot
Properties
[number, number]
required
Returns the screenshot dimensions as
[width, height] in pixels.Methods
addGrid()
width and height.
Parameters
number
required
number
required
base64()
data:image/png;base64,... or data:image/jpeg;base64,....
Returns
string
compress()
Parameters
number
required
ground()
concept on this screenshot using the given grounding model and
return the corresponding global physical pixel coordinates [x, y].
The output can be fed directly to primitives that expect global screen
coordinates.
Equivalent to model.ground(screenshot, concept).
Parameters
GroundingModel
required
string
required
Returns
[number, number]
save()
Parameters
string
required
shrink()
Parameters
number
required
number
required
toGlobalPhysicalPixels()
(x, y) to the
corresponding global physical pixel position (for example, when
moving the mouse to the same on-screen point).
See ScreenshotCoordinateType for how coord_type affects
interpretation of (x, y).
Parameters
number
required
number
required
ScreenshotCoordinateType
required
Returns
[number, number]
