
**Summary:** Provides methods to license the component.

**Module:** [aspose.imaging](/imaging/python-net/aspose.imaging/)

**Full Name:** aspose.imaging.License

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [License()](#License__1) | Initializes a new instance of the [License](/imaging/python-net/aspose.imaging/license/) class.<br/>             Initializes a new instance of this class. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [set_license(license_name)](#set_license_license_name_1) | Licenses the component. |
| [set_license(stream)](#set_license_stream_2) | Licenses the component. |
| [set_license_stream(stream)](#set_license_stream_stream_3) | Licenses the component. |


### Constructor: License() {#License__1}


```
 License() 
```

Initializes a new instance of the [License](/imaging/python-net/aspose.imaging/license/) class.<br/>             Initializes a new instance of this class.

### Method: set_license(license_name) {#set_license_license_name_1}


```
 set_license(license_name) 
```

Licenses the component.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| license_name | string | Can be a full or short file name . Use an empty string to switch to evaluation mode. |

### Method: set_license(stream) {#set_license_stream_2}


```
 set_license(stream) 
```

Licenses the component.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| stream | _io.BufferedRandom | A stream that contains the license. |

### Method: set_license_stream(stream) {#set_license_stream_stream_3}


```
 set_license_stream(stream) 
```

Licenses the component.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| stream | _io.BufferedRandom | A stream that contains the license. |

