屏幕像素工具。可以获取、对比颜色,或在屏幕与窗口上渲染像素
Project description
Pixel toolkit (pixkit)
屏幕像素工具。可以获取、对比颜色,或在屏幕与窗口上渲染像素。
系统要求
支持的平台
- 操作系统:Windows 10/11(64位)
- 架构:x64/AMD64
- Python:3.14 或更高版本
不支持的平台
- 32位 Windows 系统
- Linux 或 macOS
- ARM 架构 Windows
- Python 2.x
安装
从PyPI安装(推荐)
pip install pixkit
验证安装
PowerShell
python -c "try:`n import pixkit`n print('安装成功')`nexcept:`n print('安装失败,请运行 pip install pixkit')"
命令提示符(cmd)或其它
python -c "import pixkit; print('安装成功')"
如果报错提示ModuleNotFoundError: No module named 'pixkit'则代表安装失败,请运行pip install pixkit。
快速开始
基础示例
import pixkit
x: int = 0
y: int = 0
color = pixkit.getpixel(x, y)
print("RGB Code: ", color["rgb"]["code"])
print("R: ", color["rgb"]["r"], ", G: ", color["rgb"]["g"], ", B: ", color["rgb"]["b"])
print("RGB: ", color["rgb"]["rgb"])
print("x: ", color["rgb"]["x"], ", y: ", color["rgb"]["y"])
API 参考
getpixel函数
参数
x:像素点的 x 轴坐标。y:像素点的 y 轴坐标。
返回值
- 包含像素点信息的字典。
备注
关于像素点信息的字典结构如下:
{
"coord": {
"x": int,
"y": int
},
"rgb": {
"code": str, # 红色:"#FF0000",绿色:"#00FF00",蓝色:"#0000FF"
"r": int,
"g": int,
"b": int
}
}
更新日志
最近版本
- v0.0.1 (2025-12-31):
-
- 基础功能发布。
许可证
这是专有软件。请查看 LICENSE 文件了解详细条款。
重要: 使用本软件即表示您同意遵守许可证条款。
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
pixkit-0.0.1.tar.gz
(19.3 kB
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 pixkit-0.0.1.tar.gz.
File metadata
- Download URL: pixkit-0.0.1.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e618c57f1b6cde49d6363d41951c6ee7f0dead8fe7447af8c15431470f5195
|
|
| MD5 |
505d33f83ff60591be051acdcc4eed02
|
|
| BLAKE2b-256 |
04a7fd3cf6eeec67886d38c0cbdeb82d40b986ee875502527c2f30597f4e3981
|
File details
Details for the file pixkit-0.0.1-py3-none-win_amd64.whl.
File metadata
- Download URL: pixkit-0.0.1-py3-none-win_amd64.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c576dc72dea8a7b4a4d0a36b2ea49bc65531e568b3454f5b18a89071dd849dd
|
|
| MD5 |
1c863a02770a519c85655a0c25994d99
|
|
| BLAKE2b-256 |
f9d35e6611c93451be2664c3a936c9ea1d098ee7e15e483b19de0abadb5c9a00
|