Skip to main content

screenshot_element

Function screenshot_element 

Source
pub fn screenshot_element(element: &Element) -> Result<Screenshot>
Expand description

Capture the pixels under an element’s current bounds.

Returns Error::NoElementBounds if the element has no bounds. The target window is not raised or activated — see the screenshot module docs.