
**Summary:** Containing dimensions for a drawn object.

**Module:** [aspose.psd.xmp.types.complex.dimensions](/psd/python-net/aspose.psd.xmp.types.complex.dimensions/)

**Full Name:** aspose.psd.xmp.types.complex.dimensions.Dimensions

**Inheritance:** IXmpType, ComplexTypeBase

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [Dimensions()](#Dimensions__1) | Initializes a new instance of the [Dimensions](/psd/python-net/aspose.psd.xmp.types.complex.dimensions/dimensions/) class. |
| [Dimensions(width, height)](#Dimensions_width_height_2) | Initializes a new instance of the [Dimensions](/psd/python-net/aspose.psd.xmp.types.complex.dimensions/dimensions/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| height | float | r/w | Gets or sets the height. |
| namespace_uri | string | r | Gets the default namespace URI. |
| prefix | string | r | Gets the prefix. |
| units | string | r/w | Gets or sets units. |
| width | float | r/w | Gets or sets the width. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [get_xmp_representation()](#get_xmp_representation__1) | Gets the string contained value in XMP format. |


### Constructor: Dimensions() {#Dimensions__1}


```
 Dimensions() 
```

Initializes a new instance of the [Dimensions](/psd/python-net/aspose.psd.xmp.types.complex.dimensions/dimensions/) class.

### Constructor: Dimensions(width, height) {#Dimensions_width_height_2}


```
 Dimensions(width, height) 
```

Initializes a new instance of the [Dimensions](/psd/python-net/aspose.psd.xmp.types.complex.dimensions/dimensions/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| width | float | The width. |
| height | float | The height. |

### Method: get_xmp_representation() {#get_xmp_representation__1}


```
 get_xmp_representation() 
```

Gets the string contained value in XMP format.

**Returns**

| Type | Description |
| :- | :- |
| string | Returns the string contained value in XMP format. |


