Show Menu


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.
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)}