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.SetStrokeAntiAlias

Enables/disables stroke anti-aliasing.

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

MBS( "GMImage.SetStrokeAntiAlias"; ImageRef; flag )

Parameters

Parameter Description Example value
ImageRef The image reference number. 1
flag A boolean value. 1

Result

Returns "OK" on success.

Description

Enables/disables stroke anti-aliasing.

Examples

Draw without anti alias:

Variable setzen [ $img ; Wert: MBS("GMImage.New"; "150x100"; "RGB 1 1 1") ]
# Draw rectangle in blue
Variable setzen [ $r ; Wert: MBS("GMImage.SetFillColor"; $img; "RGB 0 0 1") ]
Variable setzen [ $r ; Wert: MBS("GMImage.DrawRectangle"; $img; 0; 0; 500; 500; "fill") ]
# Draw line without anti alias
Variable setzen [ $r ; Wert: MBS( "GMImage.SetStrokeAntiAlias"; $img; 0 ) ]
Variable setzen [ $r ; Wert: MBS("GMImage.SetStrokeColor"; $img; "RGB 1 0 0") ]
Variable setzen [ $r ; Wert: MBS("GMImage.SetFillColor"; $img; "RGB 0 0 1") ]
Variable setzen [ $r ; Wert: MBS("GMImage.SetLineWidth"; $img; 1) ]
Variable setzen [ $r ; Wert: MBS("GMImage.DrawLine"; $img; 50; 50; 250; 50) ]
# Save picture & cleanup
Variable setzen [ $png ; Wert: MBS("GMImage.WriteToPNGContainer"; $img; "test.png") ]
Variable setzen [ $r ; Wert: MBS("GMImage.Destroy"; $img) ]
Feldwert setzen [ Drawing::Image ; $png ]

See also


GMImage.SetSize   -   GMImage.SetStrokeColor

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins