what do the parameters of bbox mean in pillow?
Question:
I am trying to take a screenshot of a delimited area of the screen using Pillow (python), but I’m having trouble figuring out what the four parameters mean. I searched the docs, but they only say it is a bbox, but not what they mean, someone know where is this specified?
This is the code I am trying to use, what do ‘a’, ‘b’, ‘c’ and ‘d’ represent?
ImageGrab.grab(bbox=(a,b,c,d))
Answers:
according to the doc
Parameters: bbox – What region to copy. Default is the entire screen.
so as for the box the parameters are positions
Parameters: box – The crop rectangle, as a (left, upper, right, lower)-tuple.
I am trying to take a screenshot of a delimited area of the screen using Pillow (python), but I’m having trouble figuring out what the four parameters mean. I searched the docs, but they only say it is a bbox, but not what they mean, someone know where is this specified?
This is the code I am trying to use, what do ‘a’, ‘b’, ‘c’ and ‘d’ represent?
ImageGrab.grab(bbox=(a,b,c,d))
according to the doc
Parameters: bbox – What region to copy. Default is the entire screen.
so as for the box the parameters are positions
Parameters: box – The crop rectangle, as a (left, upper, right, lower)-tuple.