Table of Contents

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 instantiated
Path2D 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

path Union77

Remarks

-Path2D, the interface this constructor belongs to

See also on MDN

Methods

AddPath(Path2D, DOMMatrix2DInit)

The Path2D.addPath() method
of the Canvas 2D API adds one Path2D object to another
Path2D object.

[Value("addPath")]
public GlobalObject.Undefined AddPath(Path2D path, DOMMatrix2DInit transform = null)

Parameters

path Path2D
transform DOMMatrix2DInit

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

-The interface defining this method: Path2D

See also on MDN