mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +03:00
Fix a couple of example imports
This commit is contained in:
parent
f2be739fdf
commit
b98c3f05cd
|
@ -18,7 +18,7 @@ Example: Draw a gray cross over an image
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import Image, ImageDraw
|
from PIL import Image, ImageDraw
|
||||||
|
|
||||||
im = Image.open("lena.pgm")
|
im = Image.open("lena.pgm")
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ Vary the Sharpness of an Image
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import ImageEnhance
|
from PIL import ImageEnhance
|
||||||
|
|
||||||
enhancer = ImageEnhance.Sharpness(image)
|
enhancer = ImageEnhance.Sharpness(image)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user