class documentation

class Image(engine.Image):

View In Hierarchy

Store a native 2D image and its display size.

Methods

  • set_size(size)
    Set the image size.
  • __del__()
    Release the native image resources.
Parameters
sizeImage width and height.
is_8bitWhether the image uses 8-bit graphics.
dataOptional raw pixel data. Defaults to None.
pathOptional file path for image data. Defaults to "".
Method __setattr__ Set an image attribute, routing to the matching setter.
Instance Variable size Image size in pixels. Writable.
def __setattr__(self, name, value):

Set an image attribute, routing to the matching setter.

Parameters
name:strAttribute name to set.
value:objectNew value for the attribute.
size: Vector =

Image size in pixels. Writable.