base classes — bpy_struct, ID
Image datablock referencing an external or packed image
Representation of alpha information in the RGBA pixels
| Type: | enum in [‘STRAIGHT’, ‘PREMUL’], default ‘STRAIGHT’ |
|---|
OpenGL bindcode
| Type: | int in [0, inf], default 0, (readonly) |
|---|
Number of channels in pixels buffer
| Type: | int in [0, inf], default 0, (readonly) |
|---|
Input color space settings
| Type: | ColorManagedInputColorspaceSettings, (readonly) |
|---|
Image bit depth
| Type: | int in [0, inf], default 0, (readonly) |
|---|
Display Aspect for this image, does not affect rendering
| Type: | float array of 2 items in [0.1, inf], default (0.0, 0.0) |
|---|
Order of video fields (select which lines are displayed first)
| Type: | enum in [‘EVEN’, ‘ODD’], default ‘EVEN’ |
|---|
Format used for re-saving this file
| Type: | enum in [‘BMP’, ‘IRIS’, ‘PNG’, ‘JPEG’, ‘JPEG2000’, ‘TARGA’, ‘TARGA_RAW’, ‘CINEON’, ‘DPX’, ‘OPEN_EXR_MULTILAYER’, ‘OPEN_EXR’, ‘HDR’, ‘TIFF’, ‘AVI_JPEG’, ‘AVI_RAW’, ‘FRAMESERVER’, ‘H264’, ‘FFMPEG’, ‘THEORA’, ‘XVID’], default ‘TARGA’ |
|---|
Image/Movie file name
| Type: | string, default “”, (never None) |
|---|
Image/Movie file name (without data refreshing)
| Type: | string, default “”, (never None) |
|---|
Speed of the animation in frames per second
| Type: | int in [1, 100], default 0 |
|---|
Duration (in frames) of the image (1 when not a video/sequence)
| Type: | int in [0, inf], default 0, (readonly) |
|---|
End frame of an animated texture
| Type: | int in [0, 128], default 0 |
|---|
Start frame of an animated texture
| Type: | int in [0, 128], default 0 |
|---|
Generated image height
| Type: | int in [1, 65536], default 0 |
|---|
Generated image type
| Type: | enum in [‘BLANK’, ‘UV_GRID’, ‘COLOR_GRID’], default ‘BLANK’ |
|---|
Generated image width
| Type: | int in [1, 65536], default 0 |
|---|
True if this image has data
| Type: | boolean, default False, (readonly) |
|---|
Image has changed and is not saved
| Type: | boolean, default False, (readonly) |
|---|
True if this image is stored in float buffer
| Type: | boolean, default False, (readonly) |
|---|
Mapping type to use for this image in the game engine
| Type: | enum in [‘UV’, ‘REFLECTION’], default ‘UV’ |
|---|
| Type: | PackedFile, (readonly) |
|---|
Image pixels in floating point values
| Type: | float in [-inf, inf], default 0.0 |
|---|
The current render slot displayed, only for viewer type images
| Type: | int in [0, 7], default 0 |
|---|
X/Y pixels per meter
| Type: | float array of 2 items in [-inf, inf], default (0.0, 0.0) |
|---|
Width and height in pixels, zero when image data cant be loaded
| Type: | int array of 2 items in [-inf, inf], default (0, 0), (readonly) |
|---|
Where the image comes from
| Type: | enum in [‘FILE’, ‘SEQUENCE’, ‘MOVIE’, ‘GENERATED’, ‘VIEWER’], default ‘FILE’ |
|---|
Degree of repetition in the X direction
| Type: | int in [1, 16], default 0 |
|---|
Degree of repetition in the Y direction
| Type: | int in [1, 16], default 0 |
|---|
How to generate the image
| Type: | enum in [‘IMAGE’, ‘MULTILAYER’, ‘UV_TEST’, ‘RENDER_RESULT’, ‘COMPOSITING’], default ‘IMAGE’, (readonly) |
|---|
Use the alpha channel information from the image or make image fully opaque
| Type: | boolean, default False |
|---|
Use as animated texture in the game engine
| Type: | boolean, default False |
|---|
Disable texture repeating horizontally
| Type: | boolean, default False |
|---|
Disable texture repeating vertically
| Type: | boolean, default False |
|---|
Use fields of the image
| Type: | boolean, default False |
|---|
Generate floating point buffer
| Type: | boolean, default False |
|---|
Use of tilemode for faces (default shift-LMB to pick the tile for selected faces)
| Type: | boolean, default False |
|---|
Apply render part of display transformation when displaying this image on the screen
| Type: | boolean, default False |
|---|
Save image to a specific path using a scenes render settings
| Parameters: |
|
|---|
Save image to its source path
Pack an image as embedded data into the .blend file
| Parameters: | as_png (boolean, (optional)) – as_png, Pack the image as PNG (needed for generated/dirty images) |
|---|
Save an image packed in the .blend file to disk
| Parameters: | method (enum in [‘USE_LOCAL’, ‘WRITE_LOCAL’, ‘USE_ORIGINAL’, ‘WRITE_ORIGINAL’], (optional)) – method, How to unpack |
|---|
Reload the image from its source path
Update the display image from the floating point buffer
Scale the image in pixels
| Parameters: |
|
|---|
Delay the image from being cleaned from the cache due inactivity
| Parameters: |
|
|---|---|
| Returns: | Error, OpenGL error value |
| Return type: | int in [-inf, inf] |
Load the image into OpenGL graphics memory
| Parameters: |
|
|---|---|
| Returns: | Error, OpenGL error value |
| Return type: | int in [-inf, inf] |
Free the image from OpenGL graphics memory
Return the absolute path to the filepath of an image frame specified by the image user
| Parameters: | image_user (ImageUser, (optional)) – Image user of the image to get filepath for |
|---|---|
| Returns: | File Path, The resulting filepath from the image and it’s user |
| Return type: | string, (never None) |
Inherited Properties
Inherited Functions
References