Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

GMImage.DrawArc

Draws an arc.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 3.0 Yes Yes Yes Yes Yes
MBS( "GMImage.DrawArc"; ImageRef; startX; startY; endX; endY; startDegrees; endDegrees )   More

Parameters

Parameter Description Example value
ImageRef The image reference number. 1
startX The X coordinate for start position.
startY The Y coordinate for start position.
endX The X coordinate for end position.
endY The Y coordinate for end position.
startDegrees The start degree value.
endDegrees The end degree value.

Result

Returns OK or error message.

Description

Draws an arc.
Draw an arc using the stroke color and based on the circle starting at coordinates startX,startY, and ending with coordinates endX,endY, and bounded by the rotational arc startDegrees,endDegrees.

If you have an open path, the command is added there for later drawing with GMImage.DrawPath.

Examples

Creates a new image with a round rectangle:

Set Variable [ $img; Wert:MBS("GMImage.New"; "300x200"; "RGB 1 1 1") ]
Set Variable [ $r; Wert:MBS("GMImage.SetStrokeColor"; $img; "RGB 1 0 0") ]
Set Variable [ $r; Wert:MBS("GMImage.SetFillColor"; $img; "RGB 0 0 1") ]
Set Variable [ $r; Wert:MBS("GMImage.SetLineWidth"; $img; 5) ]
Set Variable [ $r; Wert:MBS("GMImage.DrawArc"; $img; 50; 50; 250; 150; 0; 90) ]
Set Variable [ $png; Wert:MBS("GMImage.WriteToPNGContainer"; $img; "test.png") ]
Set Variable [ $r; Wert:MBS("GMImage.Destroy"; $img) ]
Set Field [ Drawing::Image; $png ]

See also

Example Databases

Created 18th August 2014, last changed 18th August 2014


GMImage.Directory   -   GMImage.DrawCircle

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins