ICanvas class
ICanvas class
Represents a canvas for drawing 2D graphics.
The ICanvas type exposes the following members:
Properties
| Property | Description |
|---|---|
| context | Gets the canvas context associated with the canvas. |
Methods
| Method | Description |
|---|---|
| arc | Adds an arc to the current path. |
| arc | Adds an arc to the current path. |
| clip | Sets the current clipping path using the specified fill rule. |
| clip | Sets the current clipping path using the specified path and fill rule. |
| ellipse | Adds an ellipse to the current path. |
| ellipse | Adds an ellipse to the current path. |
| fill | Fills the current path with the specified fill rule. |
| fill | Fills the specified path with the specified fill rule. |
| is_point_in_path | Determines whether the specified point is inside the current path using the specified fill rule. |
| is_point_in_path | Determines whether the specified point is inside the specified path using the specified fill rule. |
| is_point_in_stroke | Determines whether the specified point is inside the current stroked path. |
| is_point_in_stroke | Determines whether the specified point is inside the specified stroked path. |
| stroke | Strokes the current path. |
| stroke | Strokes the specified path. |
| arc_to | Adds an arc to the current path, connecting the previous point to the start point of the arc with a straight line. |
| begin_path | Begins a new subpath, discarding the current path if any. |
| bezier_curve_to | Adds a cubic Bézier curve to the current path. |
| clear_rect | Clears the specified rectangular area to transparent. |
| close_path | Closes the current subpath by drawing a straight line from the current point to the starting point of the subpath. |
| draw_image | Draws an image on the canvas. |
| fill_rect | Fills the specified rectangular area with the current fill style. |
| fill_text | Fills the specified text at the specified position. |
| get_path_rect | Gets the bounding rectangle of the current path. |
| line_to | Adds a line segment to the current path. |
| measure_text | Measures the width of the specified text using the current font properties. |
| move_to | Moves the starting point of a new subpath to the specified point. |
| quadratic_curve_to | Adds a quadratic Bézier curve to the current path. |
| rect | Adds a rectangle to the current path. |
| restore_context | Restores the most recently saved canvas state by popping the top entry from the drawing state stack. |
| save_context | Saves the entire state of the canvas by pushing the current state onto a stack. |
| stroke_rect | Strokes the specified rectangular area. |
| stroke_text | Strokes the specified text at the specified position. |
See Also
- module
aspose.svg.rendering