Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

GMImage.SetStrokeDashArray

Specify the pattern of dashes and gaps used to stroke paths.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 4.2 Yes Yes Yes Yes Yes

MBS( "GMImage.SetStrokeDashArray"; ImageRef; Pattern )

Parameters

Parameter Description Example value
ImageRef The image reference number. 1
Pattern The list of pattern numbers. can be separated by space or newline. "5 3 2"

Result

Returns OK or error.

Description

Specify the pattern of dashes and gaps used to stroke paths.
The strokeDashArray represents an array of numbers that specify the lengths of alternating dashes and gaps in pixels. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. A typical strokeDashArray array might contain the members 5 3 2.

Examples

Set a pattern

MBS( "GMImage.SetStrokeDashArray"; $ImageRef; "5 3 2" )

See also


GMImage.SetStrokeColor   -   GMImage.SetStrokeDashOffset

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins