Painter Class
Contents
[
Hide
]Summary:
Module: aspose.gis.painting
Full Name: aspose.gis.painting.Painter
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| Painter(engine) | Initializes a new instance of the Painter class |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| brush | PainterBrush | r/w | |
| font | System.Drawing.Font | r/w | |
| pen | PainterPen | r/w | |
| rounded_height | double | r | |
| rounded_width | double | r | |
| tranformation | 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_characters(text, font) | |
| 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)
Initializes a new instance of the Painter class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| engine | PaintEngine |
Method: measure_text(text, font)
measure_text(text, font)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | string | |
| font | System.Drawing.Font |
Returns
| Type | Description |
|---|---|
| Size |
Method: measure_text_characters(text, font)
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> |