
**Summary:** 

**Module:** [aspose.gis.painting](/psd/python-net/aspose.gis.painting/)

**Full Name:** aspose.gis.painting.Painter

**Aspose.PSD Version:** 25.9.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [Painter(engine)](#Painter_engine_1) | Initializes a new instance of the Painter class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| brush | [PainterBrush](/psd/python-net/aspose.gis.painting/painterbrush) | r/w |    |
| font | System.Drawing.Font | r/w |    |
| pen | [PainterPen](/psd/python-net/aspose.gis.painting/painterpen) | r/w |    |
| rounded_height | double | r |    |
| rounded_width | double | r |    |
| tranformation | [MatrixTransformation](/psd/python-net/aspose.gis.common/matrixtransformation/) | r/w |    |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| draw_characters(path) |    |
| draw_ellipse(center, rx, ry) |    |
| draw_image(image_path, width, height, opacity) |    |
| draw_line(c0, c1) |    |
| draw_polyline(polyline) |    |
| draw_rectangle(rectangle) |    |
| draw_shape(shape) |    |
| draw_text(bottom_left, text) |    |
| [measure_text(text, font)](#measure_text_text_font_1) |    |
| [measure_text_characters(text, font)](#measure_text_characters_text_font_2) |    |
| rotate(cos, sin) |    |
| rotate(degrees) |    |
| scale(zoom_x, zoom_y) |    |
| start_new_layer(opacity) |    |
| start_new_layer(options) |    |
| translate(c) |    |
| translate(x, y) |    |


### Constructor: Painter(engine) {#Painter_engine_1}


```
 Painter(engine) 
```

Initializes a new instance of the Painter class

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| engine | [PaintEngine](/psd/python-net/aspose.gis.painting/paintengine) |  |

### Method: measure_text(text, font) {#measure_text_text_font_1}


```
 measure_text(text, font) 
```

  

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| text | string |  |
| font | System.Drawing.Font |  |

**Returns**

| Type | Description |
| :- | :- |
| [Size](/psd/python-net/aspose.gis.common/size/) |  |


### Method: measure_text_characters(text, font) {#measure_text_characters_text_font_2}


```
 measure_text_characters(text, font) 
```

  

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| text | string |  |
| font | System.Drawing.Font |  |

**Returns**

| Type | Description |
| :- | :- |
| System.Collections.Generic.List<Aspose.Gis.Common.Size> |  |


