Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries file name of the image.

Component Version macOS Windows Linux Server iOS SDK
CGImageSource 9.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "CGImageSource.FileName"; Ref )   More


Parameter Description Example
Ref The image source reference number returned by CGImageSource.CreateWithData, CGImageSource.CreateWithPath or CGImageSource.CreateWithURL $ref


Returns text or error.


Queries file name of the image.


Queries filename:

Set Variable [ $ref ; Value: MBS("CGImageSource.CreateWithData"; CGImageSource::ImageFile) ]
Show Custom Dialog [ "filename" ; MBS( "CGImageSource.FileName"; $ref ) ]
Set Variable [ $r ; Value: MBS("CGImageSource.Release"; $ref) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 30th August 2019, last changed 17th July 2022

CGImageSource.Export - CGImageSource.HasProperty