ImagePreview(bpy_struct)#

base class — bpy_struct

class bpy.types.ImagePreview(bpy_struct)#

Preview image and icon

icon_id#

Unique integer identifying this preview as an icon (zero means invalid)

Type:

int in [-inf, inf], default 0, (readonly)

icon_pixels#

Icon pixels, as bytes (always 32-bit RGBA)

Type:

int in [-inf, inf], default 0

icon_pixels_float#

Icon pixels components, as floats (RGBA concatenated values)

Type:

float in [-inf, inf], default 0.0

icon_size#

Width and height in pixels

Type:

int array of 2 items in [-inf, inf], default (0, 0)

image_pixels#

Image pixels, as bytes (always 32-bit RGBA)

Type:

int in [-inf, inf], default 0

image_pixels_float#

Image pixels components, as floats (RGBA concatenated values)

Type:

float in [-inf, inf], default 0.0

image_size#

Width and height in pixels

Type:

int array of 2 items in [-inf, inf], default (0, 0)

is_icon_custom#

True if this preview icon has been modified by py script, and is no more auto-generated by Blender

Type:

boolean, default False

is_image_custom#

True if this preview image has been modified by py script, and is no more auto-generated by Blender

Type:

boolean, default False

reload()#

Reload the preview from its source path

classmethod bl_rna_get_subclass(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References