Contents

settingProperties(_:)

Return a new image by changing the receiver’s metadata properties.

Declaration

func settingProperties(_ properties: [AnyHashable : Any]) -> CIImage

Parameters

  • properties:

    A dictionary of metadata properties akin to the CGImageSourceCopyPropertiesAtIndex() function.

Return Value

An autoreleased CIImage instance with a copy of the new properties.

Discussion

When you create an image, Core Image sets an image’s properties to a metadata dictionary as described here: properties. Use this method to override an image’s metadata properties with new values.

See Also

Creating an Image by Modifying an Existing Image