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

Loads a picture file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes
MBS( "GMImage.NewFromFile"; Path { ; Magick } )   More

Parameters

Parameter Description Example value
Path The platform specific file path. "/test.jpg"
Magick Optional
Available in MBS FileMaker Plugin 8.4 or newer.
The magick setting to define which codec to use.
"JPG"

Result

Returns the ImageRef number on success.

Description

Loads a picture file.
Please call GMImage.Destroy later to free memory for this image.
Image reference numbers are starting at 18000 and counting up for each new image.

See also

Blog Entries

Created 18th August 2014, last changed 21st July 2018


GMImage.NewFromContainer   -   GMImage.NewFromHex

Feedback: Report problem or ask question.




Links
MBS Xojo blog