CGImageSourceUpdateData(_:_:_:)
Updates the data in an incremental image source.
Declaration
func CGImageSourceUpdateData(_ isrc: CGImageSource, _ data: CFData, _ final: Bool)Parameters
- isrc:
The image source to modify.
- data:
The updated data for the image source. Each time you call this function, specify all of the accumulated image data so far.
- final:
A Boolean value that indicates whether the
dataparameter represents the complete data set. Specifytrueif the data is complete orfalseif it isn’t.
Discussion
This method updates the state of the image source and its contained images. Call this method one or more times to update the contents of an incremental data source. Each time you call the method, you must specify all of the accumulated image data, not just the new data you received.