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: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  

CGImageSource.SetProperty

Sets the value for a property.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CGImageSource 9.4 Yes No Yes, macOS only No Yes
MBS( "CGImageSource.SetProperty"; Ref; Index; Key; Value )   More

Parameters

Parameter Description Example value
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"
Value The value to use.
Can be text, timestamp, boolean or number.
"Hello"

Result

Returns OK or error.

Description

Sets the value for a property.
You may need to use CGImageSource.Export to actually write an image with new metadata.

See also

Blog Entries

Release notes

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


CGImageSource.Release   -   CGImageSource.Status

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins