Rectangle Class

Describes the properties of a rectangular window applied to the input media before processing it.

Inheritance
Rectangle

Constructor

Rectangle(*, left: Optional[str] = None, top: Optional[str] = None, width: Optional[str] = None, height: Optional[str] = None, **kwargs)

Variables

left
str

The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

top
str

The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

width
str

The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).

height
str

The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).