Texture
Overview
Texture is a class in Aspose.3D FOSS for .NET.
Inherits from: TextureBase, INamedObject.
This class defines the texture from an external file.
This class provides 11 methods for working with Texture objects in .NET programs.
Available methods include: A3DObject, FindProperty, GetProperty, RemoveProperty, SetProperty, SetRotation, SetScale, SetTranslation, Texture, TextureBase.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Alpha, AlphaSource, Content, EnableMipMap, FileName, MagFilter, and 10 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
EnableMipMap | bool | Read/Write | Gets or sets if the mipmap is enabled for this texture |
Content | byte[] | Read/Write | Gets or sets the binary content of the texture. |
FileName | string | Read/Write | Gets or sets the associated texture file. |
Alpha | double | Read/Write | Gets or sets the default alpha value of the texture. |
AlphaSource | AlphaSource | Read/Write | Gets or sets whether the texture defines the alpha channel. |
WrapModeU | WrapMode | Read/Write | Gets or sets the texture wrap modes in U. |
WrapModeV | WrapMode | Read/Write | Gets or sets the texture wrap modes in V. |
WrapModeW | WrapMode | Read/Write | Gets or sets the texture wrap modes in W. |
MinFilter | TextureFilter | Read/Write | Gets or sets the filter for minification. |
MagFilter | TextureFilter | Read/Write | Gets or sets the filter for magnification. |
MipFilter | TextureFilter | Read/Write | Gets or sets the filter for mip-level sampling. |
UVRotation | Vector3 | Read/Write | Gets or sets the rotation of the texture. |
UVScale | Vector2 | Read/Write | Gets or sets the UV scale. |
UVTranslation | Vector2 | Read/Write | Gets or sets the UV translation. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
Methods
| Signature | Description |
|---|---|
Texture() | Initializes a new instance of the Texture class. |
Texture(name: string) | Initializes a new instance of the Texture class. |
TextureBase(name: string) | Initializes a new instance of the TextureBase class. |
SetTranslation(u: double, v: double) | Sets the UV translation. |
SetScale(u: double, v: double) | Sets the UV scale. |
SetRotation(u: double, v: double) | Sets the UV rotation. |
A3DObject() | Initializes a new instance of the A3DObject class with no name. |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. |