| |
- blend_images(img1, img2, alpha)
- Returns a new image made by combining the two images.
Each pixel position is added together to get the new image.
The two images *must* be the same size (see resize_image).
The two images *must* both be colored or grayscale.
The alpha parameter (0.0 to 1.0) is the weight given to the
values from the second image.
- flip_image(image)
- Returns a copy of the given image flipped vertically.
- grayscale_image(image)
- Returns a copy of the given image with each pixel converted to
grayscale.
- invert_image(image)
- Returns a copy of the given image with each pixel value inverted.
- load_image(filename)
- Reads the specified image file from disk and returns it as
a PIL Image object.
- mirror_image(image)
- Returns a copy of the given image flipped horizontally.
- open_window(width, height)
- Opens a new GUI window with the specified width and height.
- resize_image(image, width, height)
- Returns a copy of the given image resized to width, height.
- rotate_image(image, degrees)
- Returns a copy of the given image rotated clockwise by the
specified degrees.
- show_image(image, x, y)
- Displays the given image in the GUI window at the specified position.
The position is x,y coordinates within the GUI window where the center
of the image will be placed. 0,0 is the top left corner.
|