Home | Trees | Index | Help |
|
---|
Module Image :: Class Image |
|
Method Summary | |
---|---|
int |
Get the Image's bindcode. |
int |
Get the pixel depth of this image. |
int |
Get the Image's end frame. |
string |
Get the filename of the image file loaded into this Image object. |
list of 2 ints |
Get the x & y size for the image. |
list of 2 ints |
Get the x & y origin for the image. |
string |
Get the name of this Image object. |
list of 4 floats |
Get the the colors of the current pixel in the form [r,g,b,a]. |
list of 4 ints |
Get the the colors of the current pixel in the form [r,g,b,a]. |
list of 2 ints |
Get the [width, height] dimensions (in pixels) of this image. |
int |
Get the Image's speed (fps). |
int |
Get the Image's start frame. |
int |
Get the number of repetitions in the x (horizontal) axis for this Image. |
int |
Get the number of repetitions in the y (vertical) axis for this Image. |
Delete this image's data from OpenGL texture memory, only (the image itself is not removed from Blender's memory). | |
int |
Load this image's data into OpenGL texture memory, if it is not already loaded (image.bindcode is 0 if it is not loaded yet). |
bool |
Set the currently displayed Image from Blenders UV/Image window. |
none |
Packs the image into the current blend file. |
Reloads this image from the filesystem. | |
none |
Saves the current image. |
Set the Image's end frame. | |
Change the filename of this Image object. | |
Set the name of this Image object. | |
none |
Set the the colors of the current pixel in the form [r,g,b,a]. |
none |
Set the the colors of the current pixel in the form [r,g,b,a]. |
Set the Image's speed (fps). | |
Get the Image's start frame. | |
Texture tiling: set the number of x repetitions for this Image. | |
Texture tiling: set the number of y repetitions for this Image. | |
none |
Unpacks the image to the images filename. |
Instance Variable Summary | |
---|---|
boolean | antialias : enable or disable the antialias option for this image. |
int | bindcode : Texture's bind code (readonly). |
int | depth : The pixel depth of the image. |
int | end : Texture's animation end frame [0, 128]. |
boolean | fields : enable or disable the fields option for this image. |
boolean | fields_odd : enable or disable the odd fields option for this image. |
string | filename : The filename (path) to the image file loaded into this Image
object. |
boolean | has_data : True when the image has pixel data (readonly). |
string | name : The name of this Image object. |
boolean | packed : True when the Texture is packed (readonly). |
IDGroup |
properties : Returns an IDGroup reference to this image's ID
Properties. |
list | size : The [width, height] dimensions of the image (in pixels). |
int | speed : Texture's animation speed [1, 100]. |
int | start : Texture's animation start frame [0, 128]. |
int | xrep : Texture tiling: the number of repetitions in the x (horizontal)
axis. |
int | yrep : Texture tiling: the number of repetitions in the y (vertical) axis [1,
16]. |
Method Details |
---|
getBindCode()Get the Image's bindcode. This is for texture loading using BGL calls. See, for example,BGL.glBindTexture and glLoad .
|
getDepth()Get the pixel depth of this image.
|
getEnd()Get the Image's end frame. Used for animated textures.
|
getFilename()Get the filename of the image file loaded into this Image object.
|
getMaxXY()Get the x & y size for the image. Image coordinates range from 0 to size-1.
|
getMinXY()Get the x & y origin for the image. Image coordinates range from 0 to size-1.
|
getName()Get the name of this Image object.
|
getPixelF(x, y)Get the the colors of the current pixel in the form [r,g,b,a]. Returned values are floats normalized to 0.0 - 1.0. Pixel coordinates are in the range from 0 to N-1. SeegetMaxXY
|
getPixelI(x, y)Get the the colors of the current pixel in the form [r,g,b,a]. Returned values are ints normalized to 0 - 255. Pixel coordinates are in the range from 0 to N-1. SeegetMaxXY
|
getSize()Get the [width, height] dimensions (in pixels) of this image.
|
getSpeed()Get the Image's speed (fps). Used for animated textures.
|
getStart()Get the Image's start frame. Used for animated textures.
|
getXRep()Get the number of repetitions in the x (horizontal) axis for this Image. This is for texture tiling.
|
getYRep()Get the number of repetitions in the y (vertical) axis for this Image. This is for texture tiling.
|
glFree()Delete this image's data from OpenGL texture memory, only (the image itself is not removed from Blender's memory). Internally, glDeleteTextures (seeBGL.glDeleteTextures ) is used, but this
method also updates Blender's Image object so that its bind code is set
to 0. See also Image.glLoad , Image.getBindCode .
|
glLoad()Load this image's data into OpenGL texture memory, if it is not already loaded (image.bindcode is 0 if it is not loaded yet).
|
makeCurrent()Set the currently displayed Image from Blenders UV/Image window. When multiple images are displayed, the last active UV/Image windows image is used.
|
pack()Packs the image into the current blend file.
|
reload()Reloads this image from the filesystem. If used within a loop you need to redraw the Window to see the change in the image, e.g. with Window.RedrawAll().
|
save()Saves the current image.
|
setEnd(end)Set the Image's end frame. Used for animated textures.
|
setFilename(name)Change the filename of this Image object.
|
setName(name)Set the name of this Image object.
|
setPixelF(x, y, (r, g, b, a))Set the the colors of the current pixel in the form [r,g,b,a]. Color values must be floats in the range 0.0 - 1.0. Pixel coordinates are in the range from 0 to N-1. SeegetMaxXY
|
setPixelI(x, y, (r, g, b, a))Set the the colors of the current pixel in the form [r,g,b,a]. Color values must be ints in the range 0 - 255. Pixel coordinates are in the range from 0 to N-1. SeegetMaxXY
|
setSpeed(speed)Set the Image's speed (fps). Used for animated textures.
|
setStart(start)Get the Image's start frame. Used for animated textures.
|
setXRep(xrep)Texture tiling: set the number of x repetitions for this Image.
|
setYRep(yrep)Texture tiling: set the number of y repetitions for this Image.
|
unpack(mode)Unpacks the image to the images filename.
|
Instance Variable Details |
---|
antialiasenable or disable the antialias option for this image.
|
bindcodeTexture's bind code (readonly).
|
depthThe pixel depth of the image. [8, 16, 18, 24, 32]
|
endTexture's animation end frame [0, 128].
|
fieldsenable or disable the fields option for this image.
|
fields_oddenable or disable the odd fields option for this image.
|
filenameThe filename (path) to the image file loaded into this Image object.
|
has_dataTrue when the image has pixel data (readonly).
|
nameThe name of this Image object.
|
packedTrue when the Texture is packed (readonly).
|
propertiesReturns anIDGroup reference to this image's ID
Properties.
|
sizeThe [width, height] dimensions of the image (in pixels).
|
speedTexture's animation speed [1, 100].
|
startTexture's animation start frame [0, 128].
|
xrepTexture tiling: the number of repetitions in the x (horizontal) axis. [1, 16].
|
yrepTexture tiling: the number of repetitions in the y (vertical) axis [1, 16].
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 11 13:30:19 2007 | http://epydoc.sf.net |