ICanvas Interface
Contents
[
Hide
]ICanvas interface
Represents a canvas for drawing 2D graphics.
public interface ICanvas : IDisposable
Properties
Name | Description |
---|---|
Context { get; } | Gets the canvas context associated with the canvas. |
Methods
Name | Description |
---|---|
Arc(double, double, double, double, double) | Adds an arc to the current path. |
Arc(double, double, double, double, double, bool) | Adds an arc to the current path. |
ArcTo(double, double, double, double, double) | Adds an arc to the current path, connecting the previous point to the start point of the arc with a straight line. |
BeginPath() | Begins a new subpath, discarding the current path if any. |
BezierCurveTo(double, double, double, double, double, double) | Adds a cubic Bézier curve to the current path. |
ClearRect(float, float, float, float) | Clears the specified rectangular area to transparent. |
Clip(FillRule) | Sets the current clipping path using the specified fill rule. |
Clip(IPath, FillRule) | Sets the current clipping path using the specified path and fill rule. |
ClosePath() | Closes the current subpath by drawing a straight line from the current point to the starting point of the subpath. |
DrawImage(byte[], WebImageFormat, RectangleF) | Draws an image on the canvas. |
Ellipse(double, double, double, double, double, double, double) | Adds an ellipse to the current path. |
Ellipse(double, double, double, double, double, double, double, bool) | Adds an ellipse to the current path. |
Fill(FillRule) | Fills the current path with the specified fill rule. |
Fill(IPath, FillRule) | Fills the specified path with the specified fill rule. |
FillRect(float, float, float, float) | Fills the specified rectangular area with the current fill style. |
FillText(string, float, float) | Fills the specified text at the specified position. |
GetImageData(float, float, float, float) | Gets the image data of the specified rectangular area. |
GetPathRect() | Gets the bounding rectangle of the current path. |
IsPointInPath(float, float, FillRule) | Determines whether the specified point is inside the current path using the specified fill rule. |
IsPointInPath(IPath, float, float, FillRule) | Determines whether the specified point is inside the specified path using the specified fill rule. |
IsPointInStroke(float, float) | Determines whether the specified point is inside the current stroked path. |
IsPointInStroke(IPath, float, float) | Determines whether the specified point is inside the specified stroked path. |
LineTo(double, double) | Adds a line segment to the current path. |
MeasureText(string) | Measures the width of the specified text using the current font properties. |
MoveTo(double, double) | Moves the starting point of a new subpath to the specified point. |
PutImageData(Tuple<int, int, Uint8ClampedArray>, int, int) | Puts the specified image data onto the canvas at the specified position. |
QuadraticCurveTo(double, double, double, double) | Adds a quadratic Bézier curve to the current path. |
Rect(float, float, float, float) | Adds a rectangle to the current path. |
RestoreContext() | Restores the most recently saved canvas state by popping the top entry from the drawing state stack. |
SaveContext() | Saves the entire state of the canvas by pushing the current state onto a stack. |
Stroke() | Strokes the current path. |
Stroke(IPath) | Strokes the specified path. |
StrokeRect(float, float, float, float) | Strokes the specified rectangular area. |
StrokeText(string, float, float) | Strokes the specified text at the specified position. |
See Also
- namespace Aspose.Svg.Rendering
- assembly Aspose.SVG