ITexture2D
Overview
ITexture2D is a interface in Aspose.3D FOSS for .NET.
Inherits from: ITextureUnit, IDisposable.
2D texture
This interface provides 4 methods for working with ITexture2D objects in .NET programs.
Available methods include: Load, Save, ToBitmap.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Depth, Height, Magnification, Minification, Mipmap, Scale, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Type | TextureType | Read | Gets the type of this texture unit. |
Width | int | Read | Gets the width of this texture. |
Height | int | Read | Gets the height of this texture. |
Depth | int | Read | Gets the height of this texture, for none-3D texture it’s always 1. |
UWrap | WrapMode | Read/Write | Gets or sets the wrap mode for texture’s U coordinate. |
VWrap | WrapMode | Read/Write | Gets or sets the wrap mode for texture’s V coordinate. |
WWrap | WrapMode | Read/Write | Gets or sets the wrap mode for texture’s W coordinate. |
Minification | TextureFilter | Read/Write | Gets or sets the filter mode for minification. |
Magnification | TextureFilter | Read/Write | Gets or sets the filter mode for magnification. |
Mipmap | TextureFilter | Read/Write | Gets or sets the filter mode for mipmap. |
Scroll | Vector2 | Read/Write | Gets or sets the scroll of the UV coordinate. |
Scale | Vector2 | Read/Write | Gets or sets the scale of the UV coordinate. |
Methods
| Signature | Description |
|---|---|
Load(bitmap: TextureData) | Load texture content from specified Bitmap |
Save(path: string, format: string) | Save the texture content to external file. |
Save(bitmap: TextureData) | Save the texture content to external file. |
ToBitmap() | Convert the texture unit to instance |