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  

GMImage.WriteToFile

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

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

Parameters

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"

Result

Returns "OK" on success.

Description

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

Examples

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.




Links
MBS Realbasic Plugins - Förderverein St. Arnulf Nickenich