---
title: "TransparencyIndexResource"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.psd.resources/transparencyindexresource/"
product: "Aspose.CAD for Java"
description: "The transparency index resource block."
---


**Inheritance:** java.lang.Object, ResourceBlock

The transparency index resource block.

## Constructors

| Constructor | Description |
| --- | --- |
| [TransparencyIndexResource()](#TransparencyIndexResource) | Initializes a new instance of the TransparencyIndexResource class. |

## Methods

| Method | Description |
| --- | --- |
| [getDataSize()](#getDataSize) | Gets the resource data size in bytes. |
| [getMinimalVersion()](#getMinimalVersion) | Gets the minimal required psd version. |
| [getTransparencyIndex()](#getTransparencyIndex) | Gets or sets the transparency color index. |
| [setTransparencyIndex(short value)](#setTransparencyIndex-short) | Gets or sets the transparency color index. |

### TransparencyIndexResource() {#TransparencyIndexResource}
```java
public TransparencyIndexResource()
```

Initializes a new instance of the TransparencyIndexResource class.

### getDataSize() {#getDataSize}
```java
public int getDataSize()
```

Gets the resource data size in bytes.

**Returns:** int - The resource data size.

### getMinimalVersion() {#getMinimalVersion}
```java
public int getMinimalVersion()
```

Gets the minimal required psd version.

**Returns:** int - The minimal psd version.

### getTransparencyIndex() {#getTransparencyIndex}
```java
public short getTransparencyIndex()
```

Gets or sets the transparency color index.

**Returns:** short - The transparency color index.

### setTransparencyIndex(short value) {#setTransparencyIndex-short}
```java
public void setTransparencyIndex(short value)
```

Gets or sets the transparency color index.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | short | The transparency color index. |

