| 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
|