---
Product: Aspose.3D
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/java/Texture
---

# Texture

## Overview

`Texture` is a class in Aspose.3D FOSS for Java.
Inherits from: `TextureBase`.

This class defines the texture from an external file.

This class provides 42 methods for working with Texture objects in Java programs.
Available methods include: `A3DObject`, `Texture`, `TextureBase`, `findProperty`, `getAlpha`, `getAlphaSource`, `getContent`, `getFileName`, `getMagFilter`, `getMinFilter`, `getMipFilter`, `getName`, and 29 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `alpha`, `alphaSource`, `content`, `enableMipMap`, `fileName`, `magFilter`, and 10 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `enableMipMap` | `boolean` | Read | Gets or sets if the mipmap is enabled for this texture. |
| `content` | `byte[]` | Read | Gets or sets the binary content of the texture. |
| `fileName` | `String` | Read | Gets or sets the associated texture file. |
| `alpha` | `double` | Read | Gets or sets the default alpha value of the texture. |
| `alphaSource` | `AlphaSource` | Read | Gets or sets whether the texture defines the alpha channel. |
| `wrapModeU` | `WrapMode` | Read | Gets or sets the texture wrap modes in U. |
| `wrapModeV` | `WrapMode` | Read | Gets or sets the texture wrap modes in V. |
| `wrapModeW` | `WrapMode` | Read | Gets or sets the texture wrap modes in W. |
| `minFilter` | `TextureFilter` | Read | Gets or sets the filter for minification. |
| `magFilter` | `TextureFilter` | Read | Gets or sets the filter for magnification. |
| `mipFilter` | `TextureFilter` | Read | Gets or sets the filter for mip-level sampling. |
| `uVRotation` | `Vector3` | Read | Gets or sets the rotation of the texture. |
| `uVScale` | `Vector2` | Read | Gets or sets the UV scale. |
| `uVTranslation` | `Vector2` | Read | Gets or sets the UV translation. |
| `name` | `String` | Read | Gets the name. |
| `properties` | `PropertyCollection` | Read | Gets the properties. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Texture()` | Initializes a new instance of the Texture class. |
| `Texture(name: String)` | Initializes a new instance of the Texture class. |
| `isEnableMipMap()` → `boolean` | Gets or sets if the mipmap is enabled for this texture. |
| `setEnableMipMap(enableMipMap: boolean)` | Sets the enable mip map value. |
| `getContent()` → `byte[]` | Gets or sets the binary content of the texture. |
| `setContent(content: byte[])` | Sets the content value. |
| `getFileName()` → `String` | Gets or sets the associated texture file. |
| `setFileName(fileName: String)` | Sets the file name value. |
| `TextureBase(name: String)` | Initializes a new instance of the TextureBase class. |
| `getAlpha()` → `double` | Gets or sets the default alpha value of the texture. |
| `setAlpha(alpha: double)` | 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. |
| `getAlphaSource()` → `AlphaSource` | Gets or sets whether the texture defines the alpha channel. |
| `setAlphaSource(alphaSource: AlphaSource)` | Sets the alpha source value. |
| `getWrapModeU()` → `WrapMode` | Gets or sets the texture wrap modes in U. |
| `setWrapModeU(wrapModeU: WrapMode)` | Sets the wrap mode u value. |
| `getWrapModeV()` → `WrapMode` | Gets or sets the texture wrap modes in V. |
| `setWrapModeV(wrapModeV: WrapMode)` | Sets the wrap mode v value. |
| `getWrapModeW()` → `WrapMode` | Gets or sets the texture wrap modes in W. |
| `setWrapModeW(wrapModeW: WrapMode)` | Sets the wrap mode w value. |
| `getMinFilter()` → `TextureFilter` | Gets or sets the filter for minification. |
| `setMinFilter(minFilter: TextureFilter)` | Sets the min filter value. |
| `getMagFilter()` → `TextureFilter` | Gets or sets the filter for magnification. |
| `setMagFilter(magFilter: TextureFilter)` | Sets the mag filter value. |
| `getMipFilter()` → `TextureFilter` | Gets or sets the filter for mip-level sampling. |
| `setMipFilter(mipFilter: TextureFilter)` | Sets the mip filter value. |
| `getUVRotation()` → `Vector3` | Gets or sets the rotation of the texture. |
| `setUVRotation(uvRotation: Vector3)` | Sets the uv rotation value. |
| `getUVScale()` → `Vector2` | Gets or sets the UV scale. |
| `setUVScale(uvScale: Vector2)` | Sets the uv scale value. |
| `getUVTranslation()` → `Vector2` | Gets or sets the UV translation. |
| `setUVTranslation(uvTranslation: Vector2)` | Sets the uv translation value. |
| `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()` | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
| `getName()` → `String` | The segments of the curve. |
| `setName(name: String)` | Constructs a CircleShape profile with specified radius. |
| `getProperties()` → `PropertyCollection` | Initializes a new instance of Cylinder class. |
| `findProperty(name: String)` → `Property` | Initializes a new instance of the Bone class. |
| `getProperty(name: String)` → `Object` | Gets the transform matrix of the node in current pose. |
| `setProperty(name: String, value: Object)` | Gets the width segments. |
| `removeProperty(name: String)` → `boolean` | Gets flip coordinate system of control points/normal during importing/exporting. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)