Syntax: ImageVariableName.crop(box)
Parameters:
box – a 4-tuple defining the left, upper, right, and lower pixel coordinate.
Return type: Image (Returns a rectangular region as (left, upper, right, lower) tuple).
Note:
The Python Imaging Library uses a Cartesian pixel coordinate system, with (0,0) in the upper left corner.
Prerequisite:
Working with Images in Python | Castor Classes
https://www.youtube.com/watch?v=vOiL_...
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Telegram: https://t.me/clcoding_python https://www.facebook.com/pirawenpython/ https://www.facebook.com/groups/pirawenpython/
Telegram: https://t.me/clcoding_python https://www.facebook.com/pirawenpython/ https://www.facebook.com/groups/pirawenpython/
0 Comments:
Post a Comment