ITexture2D class
ITexture2D class
2D texture
The ITexture2D type exposes the following members:
Properties
| Property | Description |
|---|---|
| type | Gets the type of this texture unit. |
| width | Gets the width of this texture. |
| height | Gets the height of this texture. |
| depth | Gets the height of this texture, for none-3D texture it’s always 1. |
| u_wrap | Gets or sets the wrap mode for texture’s U coordinate. |
| v_wrap | Gets or sets the wrap mode for texture’s V coordinate. |
| w_wrap | Gets or sets the wrap mode for texture’s W coordinate. |
| minification | Gets or sets the filter mode for minification. |
| magnification | Gets or sets the filter mode for magnification. |
| mipmap | Gets or sets the filter mode for mipmap. |
| scroll | Gets or sets the scroll of the UV coordinate. |
| scale | Gets or sets the scale of the UV coordinate. |
Methods
| Method | Description |
|---|---|
save(self, path, format) | Save the texture content to external file. |
save(self, bitmap) | Save the texture content to external file. |
load(self, bitmap) | Load texture content from specified Bitmap |
to_bitmap(self) | Convert the texture unit to TextureData instance |
See Also
- module
aspose.threed.render - class
ITextureUnit - class
TextureData