MTImage: MTImage displays an image on the screen that can be repositioned.

MTImage: MTImage displays an image on the screen that can be repositioned.
If you want to rotate it, use MTScatterImage instead.
pymt.ui.widgets.image.MTImage(arg, **kwargs)

Convenience wrapper for MTContainer(Image(...)). Allows to easily display an image. For a full reference on the parameters accepted, please refer to the documentation of the Image class: Load an image, and store the size and texture.

Parameters :
arg : can be str or Texture or Image object

A string is interpreted as a path to the image that should be loaded. You can also provide a texture object or an already existing image object. In the latter case, a real copy of the given image object will be returned.

keep_data : bool, default to False

Keep the image data when texture is created

opacity : float, default to 1.0

Opacity of the image

scale : float, default to 1.0

Scale of the image

anchor_x : float, default to 0

X anchor

anchor_y : float, default to 0

Y anchor

texture_rectangle : bool, default to True

Use rectangle texture is available (if false, will use the nearest power of 2 size for texture)

texture_mipmap : bool, default to False

Create mipmap for the texture

Previous topic

Gesture widget: a widget with on_gesture event implementation

Next topic

Kinetic: kinetic abstraction

This Page