Topics   All functions   Mac OS X   Windows   Crossplatform   Server   Components   Guides   Statistic  
New in version: 3.0   3.1   3.2   3.3   3.4   3.5   4.0   4.1   4.2   4.3  


Component: GraphicsMagick
Version: 2.0
Mac OS X: Yes
Windows: Yes
Server: Yes

MBS( "GMImage.WriteToFile"; ImageRef; Path )


Parameter Description Example value
ImageRef The image reference (a number returned from the GMImage.New functions) 1
Path A platform specific filepath where to write the image. "C:\Test.txt"


Returns "OK" on success.


Write single image frame to a file.
Use Path.FilemakerPathToNativePath to convert a filemaker path to a native path if required.


Save file to Bob's desktop as GIF file on Mac OS X:

MBS( "GMImage.WriteToFile"; $BigImageRef; "/Users/Bob/Desktop/test.gif" )

Save file to Bob's desktop as JPG file on Windows:

MBS( "GMImage.WriteToFile"; $BigImageRef; "C:\Data\logo.jpg" )

Feedback: Report problem or ask question.

MBS Filemaker Plugins - Pfarrgemeinde St. Arnulf Nickenich