**Inheritance:**
java.lang.Object, [com.aspose.imaging.xmp.types.XmpTypeBase](../../com.aspose.imaging.xmp.types/xmptypebase), [com.aspose.imaging.xmp.types.complex.ComplexTypeBase](../../com.aspose.imaging.xmp.types.complex/complextypebase)
```
public final class Thumbnail extends ComplexTypeBase
```

表示文件的缩略图图像。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [Thumbnail()](#Thumbnail--) | 初始化 `Thumbnail` 类的新实例。 |
| [Thumbnail(int width, int height)](#Thumbnail-int-int-) | 初始化 `Thumbnail` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getWidth()](#getWidth--) | 获取或设置宽度。 |
| [setWidth(int value)](#setWidth-int-) | 获取或设置宽度。 |
| [getHeight()](#getHeight--) | 获取或设置高度。 |
| [setHeight(int value)](#setHeight-int-) | 获取或设置高度。 |
| [getImageBase64()](#getImageBase64--) | 获取或设置 base64 格式的图像。 |
| [setImageBase64(String value)](#setImageBase64-java.lang.String-) | 获取或设置 base64 格式的图像。 |
| [getXmpRepresentation()](#getXmpRepresentation--) | 获取 XMP 格式的字符串值。 |
### Thumbnail() {#Thumbnail--}
```
public Thumbnail()
```


初始化 `Thumbnail` 类的新实例。

### Thumbnail(int width, int height) {#Thumbnail-int-int-}
```
public Thumbnail(int width, int height)
```


初始化 `Thumbnail` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| width | int | 宽度。 |
| height | int | 高度。 |

### getWidth() {#getWidth--}
```
public int getWidth()
```


获取或设置宽度。

**Returns:**
int
### setWidth(int value) {#setWidth-int-}
```
public void setWidth(int value)
```


获取或设置宽度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int |  |

### getHeight() {#getHeight--}
```
public int getHeight()
```


获取或设置高度。

**Returns:**
int
### setHeight(int value) {#setHeight-int-}
```
public void setHeight(int value)
```


获取或设置高度。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | int |  |

### getImageBase64() {#getImageBase64--}
```
public String getImageBase64()
```


获取或设置 base64 格式的图像。

值：base64 格式的图像。

**Returns:**
java.lang.String
### setImageBase64(String value) {#setImageBase64-java.lang.String-}
```
public void setImageBase64(String value)
```


获取或设置 base64 格式的图像。

值：base64 格式的图像。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | java.lang.String |  |

### getXmpRepresentation() {#getXmpRepresentation--}
```
public String getXmpRepresentation()
```


获取 XMP 格式的字符串值。

**Returns:**
java.lang.String - 返回 XMP 格式中包含的字符串值。
