Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

CGImageSource.FileName

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

Parameters

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

Result

Returns text or error.

Description

Queries file name of the image.

Examples

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

💬 Ask a question or report a problem