Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GMImage.AddPathCurvetoAbs
Draw a single curve.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 4.1 | Yes | Yes | Yes | Yes | Yes |
MBS( "GMImage.AddPathCurvetoAbs"; ImageRef; x1; y1; x2; y2; x; y ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| x1 | The first control point. | |
| y1 | The first control point. | |
| x2 | The second control point. | |
| y2 | The second control point. | |
| x | Destination point coordinate. | |
| y | Destination point coordinate. |
Result
Returns OK or error.
Description
Draw a single curve.Draws a cubic Bézier curve from the current point to (x,*y*) using (x1,*y1*) as the control point at the beginning of the curve and (x2,*y2*) as the control point at the end of the curve. GMImage.AddPathCurvetoAbs indicates that absolutecoordinates will follow; GMImage.AddPathCurvetoRel 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.
Examples
Draws a bezier curve:
$r = MBS("GMImage.AddPathMovetoAbs"; $img; 100; 100 )
$r = MBS("GMImage.AddPathCurvetoAbs"; $img; 100; 300; 300; 100; 300; 300 )
$r = MBS("GMImage.DrawPath"; $img )
See also
- GMImage.AddPathArcAbs
- GMImage.AddPathCurvetoRel
- GMImage.AddPathLinetoAbs
- GMImage.AddPathLinetoRel
- GMImage.AddPathMovetoAbs
- GMImage.AddPathMovetoRel
- GMImage.AddPathSmoothCurvetoAbs
- GMImage.DrawPath
Example Databases
Created 18th August 2014, last changed 18th August 2014
GMImage.AddPathClosePath - GMImage.AddPathCurvetoRel
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins