A simple lib for capture your window screen
Project description
r-capture
A Python package for screen capturing and image manipulation, published on PyPI.
Installation
Install via pip:
pip install r-capture
Features
- Screen Capture: Capture the current screen.
- Image Display: Display the captured image.
- Custom Dimensions: Adjust the width and height of the captured image by modifying the
widthandheightattributes of theCaptureclass instance. - Pixel Data: Retrieve the pixel data of the captured image as a list of integers (
list[int]). - Import Pixel Data: Create a
Captureobject from pixel data. - Save Images: Save the image stored in the
Captureobject.
Usage Example
import r_capture
# Capture the screen with a delay of 3 seconds
capture = r_capture.cap(delay=3,width=1200,height=800)
# Show the captured image
capture.show()
# Get pixel data as a list of integers
pixels = capture.pixels()
print(pixels)
#Create Capture object using pixels list
capture = r_capture.from_argb(pixels=pixels,width=1200,height=800)
# Resize image to specified resolution
capture.width = 800
capture.height = 600
# Save the captured image
capture.save("screenshot.png")
Contributing
Feel free to open an Issue or submit a Pull Request to improve the project.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
r_capture-0.1.1.tar.gz
(9.0 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file r_capture-0.1.1.tar.gz.
File metadata
- Download URL: r_capture-0.1.1.tar.gz
- Upload date:
- Size: 9.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ab40b891167663279a89cbb2cc597a67dbfbb6a263bb54a5ccc4bdb09729b58
|
|
| MD5 |
d4b6f6540d4f78c8e2ba12e675b8c8c8
|
|
| BLAKE2b-256 |
49c19082761bddb5a1f3cfbcc0a12ee24940d9e6f0ea1bdf1cd6978c404811eb
|
File details
Details for the file r_capture-0.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: r_capture-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e931b75693e9c85e4149632493678433b2b6f08dd6344f97a37b5fae8c814d6c
|
|
| MD5 |
e65981e8b69adfe23367bfafe3573455
|
|
| BLAKE2b-256 |
420c998f8cd4346ae213cfc2d6f6d11f108d6a7e1751c075af3de55820104c89
|