Platforms to show: All Mac Windows Linux Cross-Platform

Back to GMGraphicsMBS class.

Previous items Next items

GMGraphicsMBS.PathLinetoHorizontalRel(v as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The various "lineto" commands draw straight lines from the current point to a new point.

Draws a horizontal line from the current point (cpx, cpy) to (x, cpy). PathLinetoHorizontalAbs indicates that absolute coordinates are supplied; PathLinetoHorizontalRel indicates that relative coordinates are supplied. At the end of the command, the new current point becomes (x, cpy) for the final value of x.

GMGraphicsMBS.PathLinetoRel(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The various "lineto" commands draw straight lines from the current point to a new point.

Draw a line from the current point to the given coordinate which becomes the new current point. PathLinetoAbs indicates that absolute coordinates are used; PathLinetoRel indicates that relative coordinates are used. A number of coordinates pairs may be specified in a list to draw a polyline. At the end of the command, the new current point is set to the final set of coordinates provided.

See also:

GMGraphicsMBS.PathLinetoRel(c() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The various "lineto" commands draw straight lines from the current point to a new point.

Draw a line from the current point to the given coordinate which becomes the new current point. PathLinetoAbs indicates that absolute coordinates are used; PathLinetoRel indicates that relative coordinates are used. A number of coordinates pairs may be specified in a list to draw a polyline. At the end of the command, the new current point is set to the final set of coordinates provided.

See also:

GMGraphicsMBS.PathLinetoRel(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The various "lineto" commands draw straight lines from the current point to a new point.
Example
// new picture, 500x500 and filled with white
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)


dim draw as GMGraphicsMBS = image.Graphics

// Draw path

dim cr as new GMColorRGBMBS("red")
dim gr as new GMColorRGBMBS("green")
draw.StrokeColor cr
draw.FillColor gr
draw.PathMovetoAbs(30,10)
draw.PathLinetoAbs(20,55)
draw.PathLinetoAbs(70,50)
draw.PathLinetoAbs(80,5)
draw.DrawPath

draw.Draw

// show picture
image.type = image.TrueColorType // make sure it's a bitmap
Backdrop=image.CopyPicture

Draw a line from the current point to the given coordinate which becomes the new current point. PathLinetoAbs indicates that absolute coordinates are used; PathLinetoRel indicates that relative coordinates are used. A number of coordinates pairs may be specified in a list to draw a polyline. At the end of the command, the new current point is set to the final set of coordinates provided.

See also:

GMGraphicsMBS.PathLinetoVerticalAbs(v as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The various "lineto" commands draw straight lines from the current point to a new point.

Draws a vertical line from the current point (cpx, cpy) to (cpx, y). PathLinetoVerticalAbs indicates that absolute coordinates are supplied; PathLinetoVerticalRel indicates that relative coordinates are supplied. At the end of the command, the new current point becomes (cpx, y) for the final value of y.

GMGraphicsMBS.PathLinetoVerticalRel(v as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The various "lineto" commands draw straight lines from the current point to a new point.

Draws a vertical line from the current point (cpx, cpy) to (cpx, y). PathLinetoVerticalAbs indicates that absolute coordinates are supplied; PathLinetoVerticalRel indicates that relative coordinates are supplied. At the end of the command, the new current point becomes (cpx, y) for the final value of y.

GMGraphicsMBS.PathMovetoAbs(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The "moveto" commands establish a new current point.

The effect is as if the "pen" were lifted and moved to a new location. A path data segment must begin with either one of the "moveto" commands or one of the "arc" commands. Subsequent "moveto" commands (i.e., when the "moveto" is not the first command) represent the start of a new subpath.

Start a new sub-path at the given coordinate. PathMovetoAbs indicates that absolute coordinates will follow; PathMovetoRel indicates that relative coordinates will follow. If a relative moveto appears as the first element of the path, then it is treated as a pair of absolute coordinates. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands.

See also:

GMGraphicsMBS.PathMovetoAbs(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The "moveto" commands establish a new current point.

The effect is as if the "pen" were lifted and moved to a new location. A path data segment must begin with either one of the "moveto" commands or one of the "arc" commands. Subsequent "moveto" commands (i.e., when the "moveto" is not the first command) represent the start of a new subpath.

Start a new sub-path at the given coordinate. PathMovetoAbs indicates that absolute coordinates will follow; PathMovetoRel indicates that relative coordinates will follow. If a relative moveto appears as the first element of the path, then it is treated as a pair of absolute coordinates. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands.

See also:

GMGraphicsMBS.PathMovetoRel(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The "moveto" commands establish a new current point.

The effect is as if the "pen" were lifted and moved to a new location. A path data segment must begin with either one of the "moveto" commands or one of the "arc" commands. Subsequent "moveto" commands (i.e., when the "moveto" is not the first command) represent the start of a new subpath.

Start a new sub-path at the given coordinate. PathMovetoAbs indicates that absolute coordinates will follow; PathMovetoRel indicates that relative coordinates will follow. If a relative moveto appears as the first element of the path, then it is treated as a pair of absolute coordinates. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands.

See also:

GMGraphicsMBS.PathMovetoRel(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The "moveto" commands establish a new current point.

The effect is as if the "pen" were lifted and moved to a new location. A path data segment must begin with either one of the "moveto" commands or one of the "arc" commands. Subsequent "moveto" commands (i.e., when the "moveto" is not the first command) represent the start of a new subpath.

Start a new sub-path at the given coordinate. PathMovetoAbs indicates that absolute coordinates will follow; PathMovetoRel indicates that relative coordinates will follow. If a relative moveto appears as the first element of the path, then it is treated as a pair of absolute coordinates. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands.

See also:

GMGraphicsMBS.PathQuadraticCurvetoAbs(c as GMPathArgsMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point.

PathQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathQuadraticCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathQuadraticCurvetoAbs(c() as GMPathArgsMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point.

PathQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathQuadraticCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathQuadraticCurvetoAbs(x1 as Double, y1 as Double, x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point.

PathQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathQuadraticCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

See also:

GMGraphicsMBS.PathQuadraticCurvetoRel(c as GMPathArgsMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point.

PathQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathQuadraticCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathQuadraticCurvetoRel(c() as GMPathArgsMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point.

PathQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathQuadraticCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathQuadraticCurvetoRel(x1 as Double, y1 as Double, x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point.

PathQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathQuadraticCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

See also:

GMGraphicsMBS.PathSmoothCurvetoAbs(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a cubic Bézier curve from the current point to (x,y).

The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurvetoAbs, PathCurvetoRel, PathSmoothCurvetoAbs or PathSmoothCurvetoRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). PathSmoothCurvetoAbs indicates that absolute coordinates will follow; PathSmoothCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x2, y2, x and y.

See also:

GMGraphicsMBS.PathSmoothCurvetoAbs(c() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a cubic Bézier curve from the current point to (x,y).

The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurvetoAbs, PathCurvetoRel, PathSmoothCurvetoAbs or PathSmoothCurvetoRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). PathSmoothCurvetoAbs indicates that absolute coordinates will follow; PathSmoothCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x2, y2, x and y.

See also:

GMGraphicsMBS.PathSmoothCurvetoAbs(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a cubic Bézier curve from the current point to (x,y).

The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurvetoAbs, PathCurvetoRel, PathSmoothCurvetoAbs or PathSmoothCurvetoRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). PathSmoothCurvetoAbs indicates that absolute coordinates will follow; PathSmoothCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

See also:

GMGraphicsMBS.PathSmoothCurvetoRel(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a cubic Bézier curve from the current point to (x,y).

The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurvetoAbs, PathCurvetoRel, PathSmoothCurvetoAbs or PathSmoothCurvetoRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). PathSmoothCurvetoAbs indicates that absolute coordinates will follow; PathSmoothCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x2, y2, x and y.

See also:

GMGraphicsMBS.PathSmoothCurvetoRel(c() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a cubic Bézier curve from the current point to (x,y).

The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurvetoAbs, PathCurvetoRel, PathSmoothCurvetoAbs or PathSmoothCurvetoRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). PathSmoothCurvetoAbs indicates that absolute coordinates will follow; PathSmoothCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x2, y2, x and y.

See also:

GMGraphicsMBS.PathSmoothCurvetoRel(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a cubic Bézier curve from the current point to (x,y).

The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an PathCurvetoAbs, PathCurvetoRel, PathSmoothCurvetoAbs or PathSmoothCurvetoRel, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). PathSmoothCurvetoAbs indicates that absolute coordinates will follow; PathSmoothCurvetoRel indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

See also:

GMGraphicsMBS.PathSmoothQuadraticCurvetoAbs(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous
command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurvetoAbs, PathQuadraticCurvetoRel, PathSmoothQuadraticCurvetoAbs or PathSmoothQuadraticCurvetoRel, assume the control point is coincident with the current point.) PathSmoothQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathSmoothQuadraticCurvetoRel indicates that relative coordinates will follow. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathSmoothQuadraticCurvetoAbs(c() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous
command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurvetoAbs, PathQuadraticCurvetoRel, PathSmoothQuadraticCurvetoAbs or PathSmoothQuadraticCurvetoRel, assume the control point is coincident with the current point.) PathSmoothQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathSmoothQuadraticCurvetoRel indicates that relative coordinates will follow. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathSmoothQuadraticCurvetoAbs(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous
command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurvetoAbs, PathQuadraticCurvetoRel, PathSmoothQuadraticCurvetoAbs or PathSmoothQuadraticCurvetoRel, assume the control point is coincident with the current point.) PathSmoothQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathSmoothQuadraticCurvetoRel indicates that relative coordinates will follow. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

See also:

GMGraphicsMBS.PathSmoothQuadraticCurvetoRel(c as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous
command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurvetoAbs, PathQuadraticCurvetoRel, PathSmoothQuadraticCurvetoAbs or PathSmoothQuadraticCurvetoRel, assume the control point is coincident with the current point.) PathSmoothQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathSmoothQuadraticCurvetoRel indicates that relative coordinates will follow. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathSmoothQuadraticCurvetoRel(c() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous
command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurvetoAbs, PathQuadraticCurvetoRel, PathSmoothQuadraticCurvetoAbs or PathSmoothQuadraticCurvetoRel, assume the control point is coincident with the current point.) PathSmoothQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathSmoothQuadraticCurvetoRel indicates that relative coordinates will follow. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

In the GMPathArgsMBS object, set the following properties: x1, y1, x and y.

See also:

GMGraphicsMBS.PathSmoothQuadraticCurvetoRel(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draws a quadratic Bézier curve from the current point to (x,y).

The control point is assumed to be the reflection of the control point on the previous
command relative to the current point. (If there is no previous command or if the previous command was not a PathQuadraticCurvetoAbs, PathQuadraticCurvetoRel, PathSmoothQuadraticCurvetoAbs or PathSmoothQuadraticCurvetoRel, assume the control point is coincident with the current point.) PathSmoothQuadraticCurvetoAbs indicates that absolute coordinates will follow; PathSmoothQuadraticCurvetoRel indicates that relative coordinates will follow. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

See also:

GMGraphicsMBS.Point(x as Double, y as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a point using stroke color and thickness at coordinate.
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.fillColor = new GMColorRGBMBS("red") // set color

dim draw as GMGraphicsMBS = image.Graphics

// draw cross with pixels
for x as Integer = 240 to 260
draw.Point(x, 250)
next
for y as Integer = 240 to 260
draw.Point(250,y)
next
draw.Draw

Backdrop=image.CopyPicture

GMGraphicsMBS.PointSize(pointSize as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set font point size.

GMGraphicsMBS.Polygon(values() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw an arbitrary polygon using stroke color and thickness consisting of three or more coordinates contained in an array.
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.fillColor = new GMColorRGBMBS("red") // set color
image.strokeColor = new GMColorRGBMBS("green") // set color

dim draw as GMGraphicsMBS = image.Graphics
dim coordinates(-1) as GMCoordinateMBS

coordinates.Append new GMCoordinateMBS(70,70)
coordinates.Append new GMCoordinateMBS(100,340)
coordinates.Append new GMCoordinateMBS(380,200)
coordinates.Append new GMCoordinateMBS(70,70)

draw.Polygon coordinates
draw.Draw

Backdrop=image.CopyPicture

If a fill color is specified, then the object is filled.

GMGraphicsMBS.Polyline(values() as GMCoordinateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw an arbitrary polyline using stroke color and thickness consisting of three or more coordinates contained in an array.
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeColor = new GMColorRGBMBS("green") // set color

dim draw as GMGraphicsMBS = image.Graphics
dim coordinates(-1) as GMCoordinateMBS

coordinates.Append new GMCoordinateMBS(70,70)
coordinates.Append new GMCoordinateMBS(100,340)
coordinates.Append new GMCoordinateMBS(380,200)

draw.Polyline coordinates
draw.Draw

Backdrop=image.CopyPicture

If a fill color is specified, then the object is filled.

GMGraphicsMBS.PopClipPath

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Pop (terminate) clip path definition started by PushClipPath.

GMGraphicsMBS.PopGraphicContext

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Pop Graphic Context.
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorMBS() // transparent fillcolor
image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

// Draw a Rectangle
draw.PushGraphicContext
draw.Translation(250,250)
draw.Rotation(50)
draw.Rectangle(0, 0, 100, 100) // rotated
draw.PopGraphicContext
draw.Rectangle(0, 0, 100, 100) // not rotated
draw.Draw

Backdrop=image.CopyPicture

Removing the current graphic context from the graphic context stack restores the options to the values they had prior to the preceding PushGraphicContext operation.

GMGraphicsMBS.PopPattern

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Terminate a pattern definition started via PushPattern.

GMGraphicsMBS.PushClipPath(id as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Push (create) clip path definition with id.

Clip patch definition consists of subsequent drawing commands, terminated by PopClipPath.

GMGraphicsMBS.PushGraphicContext

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Push Graphic Context.
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorMBS() // transparent fillcolor
image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

// Draw a Rectangle
draw.PushGraphicContext
draw.Translation(250,250)
draw.Rotation(50)
draw.Rectangle(0, 0, 100, 100) // rotated
draw.PopGraphicContext
draw.Rectangle(0, 0, 100, 100) // not rotated
draw.Draw

Backdrop=image.CopyPicture

When a graphic context is pushed, options set after the context is pushed (such as coordinate transformations, color settings, etc.) are saved to a new graphic context. This allows related options to be saved on a graphic context "stack" in order to support heirarchical nesting of options. When PopGraphicContext is used to pop the current graphic context, the options in effect during the last PushGraphicContext operation are restored.

GMGraphicsMBS.PushPattern(id as string, x as Integer, y as Integer, width as Integer, height as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Start a pattern definition with arbitrary pattern name specified by id, pattern offset specified by x and y, and pattern size specified by width and height.

The pattern is defined within the coordinate system defined by the specified offset and size. Arbitrary drawing objects (including DrawableCompositeImage) may be specified between PushPattern and PopPattern in order to draw the pattern. Normally the pair PushGraphicContext & PopGraphicContext are used to enclose a pattern definition. Pattern definitions are terminated by a PopPattern object.

GMGraphicsMBS.Rectangle(upperLeftX as Double, upperLeftY as Double, lowerRightX as Double, lowerRightY as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Draw a rectangle using stroke color and thickness from upper-left coordinates to lower-right coordinates.
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeColor = new GMColorRGBMBS("red") // Outline color
image.fillColor = new GMColorRGBMBS("green") // Fill color
image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

// Draw a rectangle
draw.Rectangle(250, 250, 100, 100)
draw.Draw

Backdrop=image.CopyPicture

If a fill color is specified, then the object is filled.

GMGraphicsMBS.Rotation(angle as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set rotation to use when drawing (coordinate transformation).
Example
dim g as new GMGeometryMBS(500,500)
dim c as new GMColorRGBMBS("white") // white
dim image as new GMImageMBS(g, c)

image.strokeWidth = 5

dim draw as GMGraphicsMBS = image.Graphics

draw.StrokeColor new GMColorRGBMBS("red")
draw.Line(100,100,400,400)
draw.Rotation 5
draw.StrokeColor new GMColorRGBMBS("blue")
draw.Line(100,100,400,400)
draw.Draw

Backdrop=image.CopyPicture

Previous items Next items

The items on this page are in the following plugins: MBS GraphicsMagick Plugin.


The biggest plugin in space...