Skip to content

Commit e637b2f

Browse files
author
BoboTiG
committed
Readme tests 3
1 parent 4b9f5d0 commit e637b2f

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,37 +148,31 @@ print(next(screenshotter.save(mon=-1, output='fullscreen.png')))
148148
API: version 2
149149
==============
150150

151-
Get positions and dimensions of monitors:
152-
153151
```python
154152
enum_display_monitors(force=False)
155153
```
156154

157-
If `force` is set to `True`, it will rescan for monitors informations.
155+
Get positions and dimensions of monitors. If `force` is set to `True`, it will rescan for monitors informations.
158156

159157
It stocks monitors informations into `monitors` and returns it.
160158

161159
---
162160

163-
Retrieve screen pixels for a given monitor.
164-
165161
```python
166162
get_pixels(monitor)
167163
```
168164

169-
`monitor` is a dict generated by `enum_display_monitors()`.
165+
Retrieve screen pixels for a given monitor. `monitor` is a dict generated by `enum_display_monitors()`.
170166

171167
It stocks pixels data into `image` (RGB) and returns it.
172168

173169
---
174170

175-
Grab a screenshot and save it to a file.
176-
177171
```python
178172
save(mon=0, output='monitor-%d', callback=lambda *x: True)
179173
```
180174

181-
Parameters:
175+
Grab a screenshot and save it to a file. Parameters:
182176

183177
```
184178
mon
@@ -199,8 +193,6 @@ This is a generator which returns created files.
199193

200194
---
201195

202-
Export pixels to a fresh PNG:
203-
204196
```python
205197
to_png(data, width, height, output)
206198
```

0 commit comments

Comments
 (0)