Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
"""The Blender Image module
This module provides (yet) basic support for Blender *Image* data blocks
Example::
from Blender import Image
im = Image.Load('dead-parrot.jpg')
"""
#import _Blender.Image as _Image
import shadow
class Image(shadow.shadow):
"""Image DataBlock object
See above example on how to create instances of Image objects.
Attributes
xrep -- Texture image tiling factor (subdivision) in X
yrep -- Texture image tiling factor (subdivision) in Y
LATER:
* Image buffer access
* better loading / saving of images
pass
def get(name):
"""If 'name' given, the Image 'name' is returned if existing, 'None' otherwise.
If no name is given, a list of all Images is returned"""
def Load(filename):
"""Returns image from file 'filename' as Image object if found, 'None' else."""
def New(name):
"""This function is currently not implemented"""
# override all functions again, the above classes are just made
# for documentation
get = _Image.get
Get = get
Load = _Image.Load