API for Multimedia Objects

Part of the Object based program API.

class MultimediaApi

Returned by

TouchInputApi

Returns the TouchInputApi namespace.

Returns:

TouchInputApi namespace

Return type:

TouchInputApi

CreateMask(x=0, y=0, width=0, height=0)

Create a new image mask.

Parameters:
x : int

Position of left edge

y : int

Position of upper edge

width : int

Mask width

height : int

Mask height

Returns:

A new mask

Return type:

Mask

OpenMask(filePath)

Opens an existing image mask.

Parameters:
filePath : str

Path to the mask file.

Returns:

The loaded mask

Return type:

Mask