GdiPlus.Path¶
This class is extended by several plugins.
Plugin extension: layerExDraw¶
Members¶
Constructors¶
Methods¶
- startFigure
- closeFigure
- drawArc
- drawPie
- drawBezier
- drawBeziers
- drawClosedCurve
- drawClosedCurve2
- drawCurve
- drawCurve2
- drawCurve3
- drawEllipse
- drawLine
- drawLines
- drawPolygon
- drawRectangle
- drawRectangles
Path¶
Constructor
Description
Path class
startFigure¶
Method
Description
Starts the next figure without closing the current one
closeFigure¶
Method
Description
Closes the current figure
drawArc¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
Top-left coordinate |
y |
|
Top-left coordinate |
width |
|
Width |
height |
|
Height |
startAngle |
|
Start angle of the arc, measured clockwise |
sweepAngle |
|
Sweep angle |
Description
Draws an arc
drawPie¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
Top-left coordinate |
y |
|
Top-left coordinate |
width |
|
Width |
height |
|
Height |
startAngle |
|
Start angle of the arc, measured clockwise |
sweepAngle |
|
Sweep angle |
Description
Draws a pie (sector)
drawBezier¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x1 |
|
|
y1 |
|
|
x2 |
|
|
y2 |
|
|
x3 |
|
|
y3 |
|
|
x4 |
|
|
y4 |
|
Description
Draws a Bezier curve
drawBeziers¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws connected Bezier curves
drawClosedCurve¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws a closed cardinal spline
drawClosedCurve2¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
tension |
|
Tension |
Description
Draws a closed cardinal spline
drawCurve¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws a cardinal spline
drawCurve2¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
tension |
|
Tension |
Description
Draws a cardinal spline
drawCurve3¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
offset |
|
|
numberOfSegments |
|
|
tension |
|
Tension |
Description
Draws a cardinal spline
drawEllipse¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
|
y |
|
|
width |
|
|
height |
|
Description
Draws an ellipse
drawLine¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x1 |
|
Start point X coordinate |
y1 |
|
Start point Y coordinate |
x2 |
|
End point X coordinate |
y2 |
|
End point Y coordinate |
Description
Draws a line segment
drawLines¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws connected line segments
drawPolygon¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws a polygon
drawRectangle¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
|
y |
|
|
width |
|
|
height |
|
Description
Draws a rectangle
drawRectangles¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
rects |
|
Array of rectangles [ [x1, y1, width1, height1], [x2, y2, width2, height2] .... ] |
Description
Draws multiple rectangles
Plugin extension: layerExVector¶
Members¶
Constructors¶
Methods¶
- startFigure
- closeFigure
- drawArc
- drawPie
- drawBezier
- drawBeziers
- drawClosedCurve
- drawClosedCurve2
- drawCurve
- drawCurve2
- drawCurve3
- drawEllipse
- drawLine
- drawLines
- drawPolygon
- drawRectangle
- drawRectangles
Path¶
Constructor
Description
Path class
startFigure¶
Method
Description
Starts the next figure without closing the current one
closeFigure¶
Method
Description
Closes the current figure
drawArc¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
Top-left coordinate |
y |
|
Top-left coordinate |
width |
|
Width |
height |
|
Height |
startAngle |
|
Start angle of the arc, measured clockwise |
sweepAngle |
|
Sweep angle |
Description
Draws an arc
drawPie¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
Top-left coordinate |
y |
|
Top-left coordinate |
width |
|
Width |
height |
|
Height |
startAngle |
|
Start angle of the arc, measured clockwise |
sweepAngle |
|
Sweep angle |
Description
Draws a pie (sector)
drawBezier¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x1 |
|
|
y1 |
|
|
x2 |
|
|
y2 |
|
|
x3 |
|
|
y3 |
|
|
x4 |
|
|
y4 |
|
Description
Draws a Bezier curve
drawBeziers¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws connected Bezier curves
drawClosedCurve¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws a closed cardinal spline
drawClosedCurve2¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
tension |
|
Tension |
Description
Draws a closed cardinal spline
drawCurve¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws a cardinal spline
drawCurve2¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
tension |
|
Tension |
Description
Draws a cardinal spline
drawCurve3¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
offset |
|
|
numberOfSegments |
|
|
tension |
|
Tension |
Description
Draws a cardinal spline
drawEllipse¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
|
y |
|
|
width |
|
|
height |
|
Description
Draws an ellipse
drawLine¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x1 |
|
Start point X coordinate |
y1 |
|
Start point Y coordinate |
x2 |
|
End point X coordinate |
y2 |
|
End point Y coordinate |
Description
Draws a line segment
drawLines¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws connected line segments
drawPolygon¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
points |
|
Array of points [ [x1, y1], [x2, y2] .... ] |
Description
Draws a polygon
drawRectangle¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
|
y |
|
|
width |
|
|
height |
|
Description
Draws a rectangle
drawRectangles¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
rects |
|
Array of rectangles [ [x1, y1, width1, height1], [x2, y2, width2, height2] .... ] |
Description
Draws multiple rectangles