mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +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
|
In 1.1.6, you can use the ImageMath module to do image
|
||||||
calculations.
|
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
|
>>> im.mode, im.size
|
||||||
('F', (128, 128))
|
('F', (128, 128))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user