scrap icon indicating copy to clipboard operation
scrap copied to clipboard

📸 Screen capture made easy!

Results 27 scrap issues
Sort by recently updated
recently updated
newest added

Was just testing this rad library with some sample code and noticed it's ultra reliable when called in a standard console mode, but I wanted the console not in the...

I try to take the screen on mac os (run on MacBook Pro M1), I follow the sample code [here](https://github.com/quadrupleslap/scrap/blob/master/examples/screenshot.rs) But the result is ![screenshot](https://user-images.githubusercontent.com/199103/171786191-59e3af23-1240-4830-8c7e-991f609c7a1c.png) I test in Linux, the...

In building `rustdesk`, I come across this error: ``` Compiling scrap v0.5.0 (/home/var/ravi/.cache/aur/rustdesk/src/rustdesk-1.1.9/libs/scrap) Compiling magnum-opus v0.4.0 (https://github.com/open-trade/magnum-opus#3c3d0b86) error: failed to run custom build command for `scrap v0.5.0 (/home/var/ravi/.cache/aur/rustdesk/src/rustdesk-1.1.9/libs/scrap)` Caused by:...

It is my understanding that in order to follow the terms of the MIT license, a license text file that covers the entire project or notices in each file is...

I'm using `Capturer::frame()` in a async code, which blocks other code because I had to wait until a `Frame` is returned. I have tried to run such code with `smol::unblock()`...

Hi, From the api, it was not clear to me how to get a subset of screen. For example, I want to a bounding box 200x200 px captured at the...

Many mac os laptops have high DPI screens, like Retina. I've created [a screenshot capturer](https://github.com/ameobea/snapmeo/) using this library, but the captured screenshots are very low resolution. Here's an example: ![](https://ameo.link/u/63k.png)...

The following log was printed when I tried to capture from a portrait screen (1080 x 1920): ``` w: 1080, h: 1920, buffer_len: 14745600 pixels: 3686400, pixels / 1920: 1920...

``` use scrap::*; fn main() { for i in 1..100 { let display = Display::primary()?; Capturer::new(display)?; } } ``` Not that anyone would want to initialise the Capturer several times...