Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- CGImageSource.CreateWithData
- CGImageSource.CreateWithPath
- CGImageSource.CreateWithURL
- CGImageSource.Release
Release notes
- Version 9.4
- Added CGImageSource.FileName function.
Blog Entries
This function checks for a license.
Created 30th August 2019, last changed 17th July 2022