copyCGImage(at:actualTime:)
Returns an image for the asset at or near a specified time.
Declaration
func copyCGImage(at requestedTime: CMTime, actualTime: UnsafeMutablePointer<CMTime>?) throws -> CGImageParameters
- requestedTime:
A time within the asset timeline for which to create an image.
- actualTime:
Upon return, contains the time at which the image was actually generated.
If you’re not interested in this information, pass
NULL.
Return Value
A CGImage for the asset at or near a specified time, or NULL if the image could not be created.
Discussion
This method returns the image synchronously.