mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #7960 from radarhere/selftest
This commit is contained in:
commit
955c5dac03
|
@ -139,7 +139,9 @@ def testimage() -> None:
|
|||
In 1.1.6, you can use the ImageMath module to do image
|
||||
calculations.
|
||||
|
||||
>>> im = ImageMath.eval("float(im + 20)", im=im.convert("L"))
|
||||
>>> im = ImageMath.lambda_eval( \
|
||||
lambda args: args["float"](args["im"] + 20), im=im.convert("L") \
|
||||
)
|
||||
>>> im.mode, im.size
|
||||
('F', (128, 128))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user