diff --git a/README.md b/README.md index ddb1c2f..8db08fa 100644 --- a/README.md +++ b/README.md @@ -2573,7 +2573,7 @@ from PIL import Image ``` ```python - = img.getpixel((x, y)) # Returns a pixel. + = .getpixel((x, y)) # Returns a pixel. .putpixel((x, y), ) # Writes a pixel to image. = .getdata() # Returns a sequence of pixels. .putdata() # Writes a sequence of pixels. diff --git a/index.html b/index.html index de6d5c1..073d4e2 100644 --- a/index.html +++ b/index.html @@ -2189,7 +2189,7 @@ right = [[0.1, 0.6'<path>') <Image>.show() -
<tuple/int> = img.getpixel((x, y))              # Returns a pixel.
+
<tuple/int> = <Image>.getpixel((x, y))          # Returns a pixel.
 <Image>.putpixel((x, y), <tuple/int>)           # Writes a pixel to image.
 <ImagingCore> = <Image>.getdata()               # Returns a sequence of pixels.
 <Image>.putdata(<list/tuple>)                   # Writes a sequence of pixels.