Texture class
Texture class
This class defines the texture from an external file.
Inheritance: Texture →
TextureBase →
A3DObject
The Texture type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
__init__(self) | Initializes a new instance of the Texture class. |
__init__(self, name) | Initializes a new instance of the Texture class. |
Properties
| Property | Description |
|---|---|
| name | Gets or sets the name. |
| properties | Gets the collection of all properties. |
| alpha | Gets or sets the default alpha value of the texture This is valid when the TextureBase.alpha_source is AlphaSource.PIXEL_ALPHADefault value is 1.0, valid value range is between 0 and 1 |
| alpha_source | Gets or sets whether the texture defines the alpha channel. Default value is AlphaSource.NONE |
| wrap_mode_u | Gets or sets the texture wrap modes in U. |
| wrap_mode_v | Gets or sets the texture wrap modes in V. |
| wrap_mode_w | Gets or sets the texture wrap modes in W. |
| min_filter | Gets or sets the filter for minification. |
| mag_filter | Gets or sets the filter for magnification. |
| mip_filter | Gets or sets the filter for mip-level sampling. |
| uv_rotation | Gets or sets the rotation of the texture |
| uv_scale | Gets or sets the UV scale. |
| uv_translation | Gets or sets the UV translation. |
| enable_mip_map | Gets or sets if the mipmap is enabled for this texture |
| content | Gets or sets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing. |
| file_name | Gets or sets the associated texture file. |
Methods
| Method | Description |
|---|---|
remove_property(self, property) | Removes a dynamic property. |
remove_property(self, property) | Remove the specified property identified by name |
get_property(self, property) | Get the value of specified property |
set_property(self, property, value) | Sets the value of specified property |
find_property(self, property_name) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
set_translation(self, u, v) | Sets the UV translation. |
set_scale(self, u, v) | Sets the UV scale. |
set_rotation(self, u, v) | Sets the UV rotation. |
See Also
- module
aspose.threed.shading - class
A3DObject - class
Texture - class
TextureBase