GraphicContext class
GraphicContext class
Holds current graphics control parameters. These parameters define the global framework within which the graphics operators execute.
The GraphicContext type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the GraphicContext class. |
Properties
| Property | Description |
|---|---|
| current_element | Gets current processed element. |
| line_cap | Sets or gets the code specifying the shape of the endpoints for any open path that is stroked. |
| line_dash_offset | Sets or gets the phase offset of the current line dash pattern. |
| line_dash_pattern | Sets or gets the description of the dash pattern to be used when paths are stroked. Can be set to null or an empty array to be disabled. |
| line_join | Sets or gets the code specifying the shape of joints between connected segments of a stroked path. |
| line_width | Sets or gets the thickness of paths to be stroked. |
| miter_limit | Sets or gets the maximum length of mitered line joins for stroked paths. This parameter limits the length of “spikes” produced when line segments join at sharp angles. |
| fill_brush | Sets or gets the brush object that is used to fill the interiors of paths. |
| stroke_brush | Sets or gets the brush object that is used for stroked paths. |
| font | Sets or gets the true type font object that is used for rendering text. |
| font_size | Sets or gets text font size. |
| font_style | Sets or gets text font style. |
| character_spacing | Sets or gets character spacing. |
| transformation_matrix | Sets or gets transformation matrix. |
| text_info | Gets a TextInfo object which contains information about rendered text. |
Methods
| Method | Description |
|---|---|
| transform | Modify the current transformation matrix by multiplying the specified matrix. |
| clone | Creates a new instance of a GraphicContext class with the same property values as an existing instance. |
See Also
- module
aspose.html.rendering - class
GraphicContext - class
TextInfo