Show Menu
TOPICS×

s7vampy.create_gray(image)

Create a gray image.
Create a solid color gray image of the given width and height.
Parameter width int:
int width
Width of the image.
Parameter height int:
int height
Height of the image.
Parameter color tuple:
color tuple
Color of the image.
Returns:
Image instance.
Creating a 200x300 solid mid-gray image:
>>> from s7vampy import *
>>> img = create_gray_image(200, 300, 128)
>>> img
{name='rgb_image', has_alpha=False, size=(200, 300)}