Home | Trees | Index | Help |
|
---|
Module Image :: Class Image |
|
Method Summary | |
---|---|
int |
Get the Image's bindcode. |
int |
Get the pixel depth of this image. |
string |
Get the filename of the image file loaded into this Image object. |
string |
Get the name of this Image object. |
list of 2 ints |
Get the [width, height] dimensions (in pixels) of this image. |
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. |
Reloads this image from the filesystem. | |
Set the name of this Image object. | |
Texture tiling: set the number of x repetitions for this Image. | |
Texture tiling: set the number of y repetitions for this Image. |
Class Variable Summary | |
---|---|
bindcode : Texture's bind code (readonly). | |
depth : The pixel depth of the image. | |
filename : The filename (path) to the image file loaded into this Image
object. | |
name : The name of this Image object. | |
size : The [width, height] dimensions of the image (in pixels). | |
xrep : Texture tiling: the number of repetitions in the x (horizontal)
axis. | |
yrep : Texture tiling: the number of repetitions in the y (vertical)
axis. |
Method Details |
---|
getBindCode()Get the Image's bindcode. This is for texture loading using BGL calls, see for exampleBGL.glBindTexture .
|
getDepth()Get the pixel depth of this image.
|
getFilename()Get the filename of the image file loaded into this Image object.
|
getName()Get the name of this Image object.
|
getSize()Get the [width, height] dimensions (in pixels) of this image.
|
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.
|
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().
|
setName(name)Set the name of this Image object.
|
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.
|
Class Variable Details |
---|
bindcodeTexture's bind code (readonly). |
depthThe pixel depth of the image. |
filenameThe filename (path) to the image file loaded into this Image object. |
nameThe name of this Image object. |
sizeThe [width, height] dimensions of the image (in pixels). |
xrepTexture tiling: the number of repetitions in the x (horizontal) axis. |
yrepTexture tiling: the number of repetitions in the y (vertical) axis. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 12 21:47:30 2004 | http://epydoc.sf.net |