Home

Class lib2d.Image

References a bitmap that can be rendered by a Drawable.

Examples

>>> lib2d.init()
>>> logo = lib2d.Image("docs/theme/img/logo.png")

Methods

def __init__(self, path)

Load an image from the file system at path.

Members

w

Width of this image.

h

Height of this image.