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 10 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 the enable mip map. |
Content | byte[] | Read/Write | Gets or sets the content. |
FileName | string | Read/Write | Gets or sets the file name. |
Alpha | double | Read/Write | Gets or sets the alpha. |
AlphaSource | AlphaSource | Read/Write | Gets or sets the alpha source. |
WrapModeU | WrapMode | Read/Write | Gets or sets the wrap mode u. |
WrapModeV | WrapMode | Read/Write | Gets or sets the wrap mode v. |
WrapModeW | WrapMode | Read/Write | Gets or sets the wrap mode w. |
MinFilter | TextureFilter | Read/Write | Gets or sets the min filter. |
MagFilter | TextureFilter | Read/Write | Gets or sets the mag filter. |
MipFilter | TextureFilter | Read/Write | Gets or sets the mip filter. |
UVRotation | Vector3 | Read/Write | Gets or sets the uv rotation. |
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 properties. |
Methods
| Signature | Description |
|---|---|
Texture() | |
Texture(name: string) | |
TextureBase(name: string) | |
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() | |
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. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |