ICanvasDrawingStyles class
ICanvasDrawingStyles class
The ICanvasDrawingStyles interface provides methods and properties control how lines are drawn and how text is laid out.
The ICanvasDrawingStyles type exposes the following members:
Properties
Property | Description |
---|---|
line_width | Width of lines. Default 1.0 |
line_cap | Type of endings on the end of lines. Possible values: butt (default), round, square. |
line_join | Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default). |
miter_limit | Miter limit ratio. Default 10. |
line_dash_offset | Specifies where to start a dash array on a line. |
font | Font setting. Default value 10px sans-serif |
text_align | Text alignment setting. Possible values: start (default), end, left, right or center. |
text_baseline | Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom. |
Methods
Method | Description |
---|---|
set_line_dash | Sets the current line dash pattern. |
get_line_dash | Returns the current line dash pattern array containing an even number of non-negative numbers. |
See Also
- module
aspose.html.dom.canvas