Painter Class

Summary:

Module: aspose.gis.painting

Full Name: aspose.gis.painting.Painter

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
Painter(engine)Initializes a new instance of the Painter class

Properties

NameTypeAccessDescription
brushPainterBrushr/w
fontSystem.Drawing.Fontr/w
penPainterPenr/w
rounded_heightdoubler
rounded_widthdoubler
tranformationMatrixTransformationr/w

Methods

NameDescription
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:

ParameterTypeDescription
enginePaintEngine

Method: measure_text(text, font)

 measure_text(text, font) 

Parameters:

ParameterTypeDescription
textstring
fontSystem.Drawing.Font

Returns

TypeDescription
Size

Method: measure_text_characters(text, font)

 measure_text_characters(text, font) 

Parameters:

ParameterTypeDescription
textstring
fontSystem.Drawing.Font

Returns

TypeDescription
System.Collections.Generic.List<Aspose.Gis.Common.Size>