Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGImageMetadataTagMBS class.

CGImageMetadataTagMBS.Create(XMLNS as String, Prefix as String, Name as String, Type as Integer, Value as Variant) as CGImageMetadataTagMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new CGImageMetadataTagMBS object.

xmlns: The namespace for the tag. The value can be a common XMP namespace defined above, such as kCGImageMetadataNamespaceExif, or a string with a custom namespace URI. Custom namespaces must be a valid XML namespace. By convention, namespaces should end with either '/' or '#'. For example, exif uses the namespace "http://ns.adobe.com/exif/1.0/".
prefix: An abbreviation for the XML namespace. The value can be empty if the namespace is defined as a constant. Custom prefixes must be a valid XML name. For example, the prefix used for "http://ns.adobe.com/exif/1.0/" is "exif". The XMP serialization of the tag will use the prefix. Prefixes are also important for path-based metadata functions, such as StringValueWithPath or SetValueWithPath.
name: The name of the tag. It must be a valid XMP name.
type: The type of the tag's value. Must be a kType* constant.
value: The value of the tag. Allowable types include string, double, integer, boolean, array, and dictionary. The type of 'value' must correspond to the 'type'. The elements of an array must be either a string or tags itself. The keys of a CFDictionary must be string with valid XMP names. The values of a dictionary must be either strings or tags. A shallow copy of the value is stored in the tag. Therefore, modifying a mutable value after the tag is created will not affect the tag's value.

Returns a new CGImageMetadataTagMBS object. Returns nil if a tag could not be created with the specified parameters.

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...