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


Query whether the property exists.

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


Parameter Description Example
Ref The image source reference number returned by CGImageSource.CreateWithData, CGImageSource.CreateWithPath or CGImageSource.CreateWithURL $ref
Index The index of the image to query. -1 for global properties. Else a number from 0 to CGImageSource.Count-1. 0
Key The property name to query. "PixelWidth"


Returns 1, 0 or error.


Query whether the property exists.
Returns 1 if property is found.

See also

Release notes

Blog Entries

This function checks for a license.

Created 30th August 2019, last changed 28th November 2019

CGImageSource.FileName - CGImageSource.ImageAtIndex