CGImageDestinationFinalize(_:)
Writes image data and properties to the data, URL, or data consumer associated with the image destination.
Declaration
func CGImageDestinationFinalize(_ idst: CGImageDestination) -> BoolParameters
- idst:
An image destination.
Return Value
true if the image destination successfully finalized the images, or false if an error occurred.
Discussion
Call this method as the final step in saving your images. The output of the image destination isn’t valid until you call this method. After calling this function, you can’t add any more data to the image destination.