mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
commit
bf1f4b04f7
|
@ -41,7 +41,7 @@ def grab(bbox=None):
|
||||||
size, data = grabber()
|
size, data = grabber()
|
||||||
im = Image.frombytes(
|
im = Image.frombytes(
|
||||||
"RGB", size, data,
|
"RGB", size, data,
|
||||||
# RGB, 32-bit line padding, origo in lower left corner
|
# RGB, 32-bit line padding, origin lower left corner
|
||||||
"raw", "BGR", (size[0]*3 + 3) & -4, -1
|
"raw", "BGR", (size[0]*3 + 3) & -4, -1
|
||||||
)
|
)
|
||||||
if bbox:
|
if bbox:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user