MainImages(bpy_struct)

base class — bpy_struct

class bpy.types.MainImages(bpy_struct)

Collection of images

new(name, width, height, alpha=False, float_buffer=False)

Add a new image to the main database

Parameters:
  • name (string) – New name for the datablock.
  • width (int in [1, inf]) – Width of the image.
  • height (int in [1, inf]) – Height of the image.
  • alpha (boolean, (optional)) – Alpha, Use alpha channel
  • float_buffer (boolean, (optional)) – Float Buffer, Create an image with floating point color
Returns:

New image datablock.

Return type:

Image

load(filepath)

Load a new image into the main database

Parameters:filepath (string) – path of the file to load.
Returns:New image datablock.
Return type:Image
remove(image)

Remove an image from the current blendfile.

Parameters:image (Image, (never None)) – Image to remove.
tag(value)

tag

Parameters:value (boolean) – Value

Inherited Properties

Inherited Functions

References

Previous topic

MainGroups(bpy_struct)

Next topic

MainLamps(bpy_struct)