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))
Asked By: Yuri Waki

||

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.

Answered By: Novy
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.