Class Path2D
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The Path2D interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
[Value("Path2D")]
public class Path2D
- Inheritance
-
Path2D
- Inherited Members
Remarks
Constructors
Path2D()
public Path2D()
Path2D(Union77)
The Path2D() constructor returns a newly instantiatedPath2D object, optionally with another path as an argument (creates a
copy), or optionally with a string consisting of SVG path data.
public Path2D(Union77 path = default)
Parameters
pathUnion77
Remarks
-Path2D, the interface this constructor belongs to
Methods
AddPath(Path2D, DOMMatrix2DInit)
The Path2D.addPath() method
of the Canvas 2D API adds one Path2D object to anotherPath2D object.
[Value("addPath")]
public GlobalObject.Undefined AddPath(Path2D path, DOMMatrix2DInit transform = null)
Parameters
pathPath2DtransformDOMMatrix2DInit
Returns
Remarks
-The interface defining this method: Path2D