base classes — bpy_struct, ID
Image datablock referencing an external or packed image
OpenGL bindcode
Type : | int in [0, inf], default 0, (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, 5000], 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’, ‘TARGA’, ‘TARGA_RAW’, ‘OPEN_EXR_MULTILAYER’, ‘OPEN_EXR’, ‘AVI_JPEG’, ‘AVI_RAW’], 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 |
---|
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, 16384], default 0 |
---|
Generated image type
Type : | enum in [‘BLANK’, ‘UV_GRID’, ‘COLOR_GRID’], default ‘BLANK’ |
---|
Generated image width
Type : | int in [1, 16384], 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) |
---|
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 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 |
---|
For premultiplied alpha images, do color space conversion on colors without alpha, to avoid fringing for images with light backgrounds
Type : | boolean, default False |
---|
Use fields of the image
Type : | boolean, default False |
---|
Generate floating point buffer
Type : | boolean, default False |
---|
Convert RGB from key alpha to premultiplied alpha
Type : | boolean, default False |
---|
Use of tilemode for faces (default shift-LMB to pick the tile for selected faces)
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
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
Inherited Properties
Inherited Functions
|
References