Skip to content

Commit 554db73

Browse files
committed
Add an entry for the crop method of Image
1 parent 687c75b commit 554db73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/image.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ Classes
8686
8787
Same as ``image.shift_up(-n)``.
8888

89+
.. py:method:: crop(x, y, w, h)
90+
91+
Return a new image by cropping the picture to a width of ``w`` and a
92+
height of ``h``, starting with the pixel at column ``x`` and row ``y``.
93+
8994

9095
Attributes
9196
==========

0 commit comments

Comments
 (0)