From e4d95c5f2b0d799e92d71d039ded819b4fd673a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 8 Feb 2020 09:25:22 +0100 Subject: [PATCH] Image --- README.md | 6 +++--- index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 335b3e6..f0f8269 100644 --- a/README.md +++ b/README.md @@ -2672,9 +2672,9 @@ from PIL import Image ``` ```bash -<2d_array> = np.array() # Converts greyscale image to NumPy array. -<3d_array> = np.array() # Converts color image to NumPy array. - = Image.fromarray() # Converts NumPy array to Image. +<2d_array> = np.array() # Creates NumPy array from greyscale image. +<3d_array> = np.array() # Creates NumPy array from color image. + = Image.fromarray() # Creates image from NumPy array of floats. ``` ### Modes diff --git a/index.html b/index.html index 31c3aa8..bf6bc94 100644 --- a/index.html +++ b/index.html @@ -2275,9 +2275,9 @@ right = [[0.1, 0.6# Writes a sequence of pixels. <Image>.paste(<Image>, (x, y)) # Writes an image to the image. -
<2d_array> = np.array(<Image>)                  # Converts greyscale image to NumPy array.
-<3d_array> = np.array(<Image>)                  # Converts color image to NumPy array.
-<Image>    = Image.fromarray(<array>)           # Converts NumPy array to Image.
+
<2d_array> = np.array(<Image>)                  # Creates NumPy array from greyscale image.
+<3d_array> = np.array(<Image>)                  # Creates NumPy array from color image.
+<Image>    = Image.fromarray(<array>)           # Creates image from NumPy array of floats.
 

Modes

  • '1' - 1-bit pixels, black and white, stored with one pixel per byte.