Merge pull request #7960 from radarhere/selftest

This commit is contained in:
Hugo van Kemenade 2024-04-09 10:51:57 +03:00 committed by GitHub
commit 955c5dac03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))