---
title: "TransparencySupporter"
url: "https://reference.aspose.com/cad/java/com.aspose.cad/transparencysupporter/"
product: "Aspose.CAD for Java"
description: "The object supporting transparency."
---


The object supporting transparency.

## Constructors

| Constructor | Description |
| --- | --- |
| [TransparencySupporter()](#TransparencySupporter) |  |

## Methods

| Method | Description |
| --- | --- |
| [getOpacity()](#getOpacity) | Gets or sets the object's opacity. The value should be between 0 and 1. Value of 0 means that object is fully visible, value of 1 means the object is fully opaque. |
| [setOpacity(float value)](#setOpacity-float) | Gets or sets the object's opacity. The value should be between 0 and 1. Value of 0 means that object is fully visible, value of 1 means the object is fully opaque. |

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

### getOpacity() {#getOpacity}
```java
public float getOpacity()
```

Gets or sets the object's opacity. The value should be between 0 and 1. Value of 0 means that object is fully visible, value of 1 means the object is fully opaque.

**Returns:** float - The opacity value.

### setOpacity(float value) {#setOpacity-float}
```java
public void setOpacity(float value)
```

Gets or sets the object's opacity. The value should be between 0 and 1. Value of 0 means that object is fully visible, value of 1 means the object is fully opaque.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | float | The opacity value. |

