This project works as a replacement for QNX's screenshot
The screenshot
command from QNX is slow & lacks of some features
Feature | screenshot |
betterss |
---|---|---|
Capture any display | ✅ | ✅ |
Capture any area of the screen | ❌ | ✅ |
Support PNG | ❌ | ✅ |
screenshot |
betterss |
|
---|---|---|
Full screen capture time (1920x1080) | ~1.47s | ~0.10s (14.7 times faster) |
Full screen capture:
./betterss
./betterss x=100 y=100 w=200 h=200
x y w h
are optional
The images are saved under /var/tmp
./betterss file=/var/screenshot/image_name
The file extension .bmp
will be concatenated
Note: for custom locations, the path must exists (I didn't do the mkdir
)
./betterss type=png
Encoder: fpng
betterss
allow capturing any display attached (like Cluster virtual display, lower blade,...)
./betterss display=index
index
: the index of the display, might be0
,1
,2
,...
You have to try each index to find the desired display
Firstly, setup your build enviroment (QNX compiler,...)
Then cd
to project directory:
cmake .
make